Open external links in new windows

Home Forums Calendar Products Events Calendar PRO Open external links in new windows

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1084508
    Todd
    Participant

    I’d like external links in the Events detail pages to open in new windows.
    I inspect elements and see that:
    <dd class="tribe-events-event-url">
    creates this link:
    .
    This is the page: http://www.coloradograndparent.com/event/rhino-meet-and-greet/2016-03-30/.

    Same page:
    <dd class="url">

    I’d like to change these links to target="_blank"

    I tried the solution on this page https://theeventscalendar.com/support/forums/topic/open-organizer-and-venue-links-in-new-window/ but this causes EVERY link in The Events Calendar to open in new windows, even internal links.

    #1084931
    Hunter
    Moderator

    Hey Todd,

    Welcome back 🙂

    The templates you’ll need to override (organizer.php and venue.php) are located in src/functions/template-tags.

    For example, you’ll need to edit line 414 in venue.php from:

    apply_filters( 'tribe_get_venue_website_link_target', '_self' ),

    to:

    apply_filters( 'tribe_get_venue_website_link_target', '_blank' ),

    Best of luck with the overrides and thanks for choosing PRO!

    #1091035
    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 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Open external links in new windows’ is closed to new replies.