• Resolved massimod

    (@massimod)


    Hello.

    It seems that all urls (links in www in venues and organizers for example) seem to open in _self. Meaning the visitor LEAVES the site. Bad …. Bad …

    Not sure why this is needed ? Am i missing something ?

    I have manually changed in 3 places the _self to _blank, still i would like to know the probable reason for using _self.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hey there, thanks for reaching out!

    Grateful for filters!

    /**
     * The Events Calendar: Open event website, organizer, and venue links in new window.
     *
     * Filters are found in these files:
     * /wp-content/plugins/the-events-calendar/src/functions/template-tags/link.php
     * /wp-content/plugins/events-calendar-pro/src/functions/template-tags/general.php
     * /wp-content/plugins/the-events-calendar/src/functions/template-tags/organizer.php
     * /wp-content/plugins/the-events-calendar/src/functions/template-tags/venue.php
     *
     * @link https://gist.github.com/cliffordp/3584b8aee70cde484700
     *
     * @return string
     */
    add_filter( 'tribe_get_event_website_link_target', 'cliff_blank_target_for_new_window' );
    add_filter( 'tribe_get_organizer_website_link_target', 'cliff_blank_target_for_new_window' );
    add_filter( 'tribe_get_venue_website_link_target', 'cliff_blank_target_for_new_window' );
    function cliff_blank_target_for_new_window() {
    	return '_blank';
    }

    Take care,
    Ed ??

    Thread Starter massimod

    (@massimod)

    Many thanks.

    Plugin Contributor Jennifer

    (@jentheo)

    No problem, feel free to open up a new thread if you have any other questions!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Links Open in _self ?’ is closed to new replies.