Event detail page "Event Website" add target="_blank" to Url

Home Forums Calendar Products Events Calendar PRO Event detail page "Event Website" add target="_blank" to Url

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1516341
    Ryan
    Participant

    Hello,

    I have done a little research into this, but was wondering what the easiest way to add target=”_blank” to the event’s template page.

    Thanks!

    #1517389
    Barry
    Member

    Hi Ryan!

    To use target=”_blank” for the event website field (which displays on single event pages) specifically, you could use this snippet:

    add_filter( 'tribe_get_event_website_link_target', function() {
    	return '_blank';
    } );

    This could be added either to a custom plugin (preferred) or else to your theme’s functions.php file.

    Does that help? Let me know if not!

    #1533949
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Event detail page "Event Website" add target="_blank" to Url’ is closed to new replies.