• Resolved one3rdnerd

    (@one3rdnerd)


    Hello,

    Really this link as it’s pretty much always an external website should default to opening in a new tab but it doesn’t and I can’t see a setting. This seems a bit of an oversight.

    I have tried using the below function I found on the forum

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

    But that has no effect.

    I can’t edit templates because the modules are displayed using the BeaverBuilder modules and doing so would mean having to fix it every time we update the plugin.

    Is there something I’m missing?

    I really think this should be a checkbox under the settings.

Viewing 1 replies (of 1 total)
  • Thread Starter one3rdnerd

    (@one3rdnerd)

    Ooops, my bad. That was for the event link.

    I changed it to

    add_filter( 'tribe_get_venue_website_link_target', 'blank_target_for_new_window' );
    
    function blank_target_for_new_window() {
    	return '_blank';
    }

    and that works now.

Viewing 1 replies (of 1 total)
  • The topic ‘Open New Venue Website link in new tab’ is closed to new replies.