open add to calendar link in new tab
-
Looking for solutions to make the Add to Google Calendar button open in new tab.
Installed and activated The Events Calendar Extension: Open external links in a new tab. It didn’t change the Add to GCal button.
Next, added the code from github in functions.php of the theme.
The links in the event now open in new tab, but Add to GCal still opens in same tab.
It is unprofessional to send users off website and have to resolve. Thank you for help.
This is code added:
add_filter( ‘tribe_get_event_website_link_target’, ‘cliff_blank_target_for_new_window’ );
add_filter( ‘tribe_get_event_organizer_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’;
}`The page I need help with: [log in to see the link]
- The topic ‘open add to calendar link in new tab’ is closed to new replies.