Remove link from single event page to address/venue

Home Forums Calendar Products Events Calendar PRO Remove link from single event page to address/venue

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1119106
    Lars
    Participant

    Hi,

    I basically want to achieve what discussed here: https://theeventscalendar.com/support/forums/topic/disable-the-venue-and-organizer-links/

    The link to the “venue place” does not make any sense for us. The venue pages only consist of the name of the venue/address and therefore offer little of value.

    So I would like to remove the links that automatically appear on the single event pages to these pages (preferably without css).

    I assume I need to remvoe some code shown in the attached printscreen but as my coding skills are pretty lame I’m hoping for some guidelines.

    Best wishes
    Lars

    #1119460
    Brook
    Participant

    Howdy Again lars,

    I would love to help you here. Unfortunately this is one area where you have only two options:

    1. Use CSS
    2. Dive in deep to WP Theming. Again, our Themer’s Guide is the spot to be for learning this.

    It really is up to you, but based on our past interactions I am guessing you might wish to avoid option 2 as it involves a decent amount of coding.

    I can elaborate a bit on our themers guide for your specific needs, or the CSS option if you prefer. Just let me know if you would like some assistance with either of these.

    Cheers!

    – Brook

    #1119596
    Lars
    Participant

    Thanks.

    As I wrote I prefer to accomplish this with coding – not css.

    For starters: Is the file that I attached above the correct one to amend?

    I’ve already set up a /tribe-events/ folder within the my thmee and tried to a minor changed (just to see if it works) and it seems to works well.

    Best wishes
    Lars

    #1120876
    Brook
    Participant

    Howdy again Lars,

    I am happt yo hear you have got an override going. That is not quite the best file but the idealone is near by. I would override: /the-events-calendar/src/views/modules/meta/venue.php and then swap the following line:

    <dd class="tribe-venue"> <?php echo tribe_get_venue() ?> </dd>

    With this:

    <dd class="tribe-venue"> <?php echo get_the_title( tribe_get_venue_id() ) ?> </dd>

    And that should do it! Did that do what you wanted?

    Cheers!

    – Brook

    #1127363
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Remove link from single event page to address/venue’ is closed to new replies.