Sometimes the person doing the data entry will forget to check the “add google maps link” checkbox when inputing an event. And/or when importing using the event aggregator, their is not an option to have this box checked.
On our mobile site this is extremely important as it opens up Google maps for instant navigation.
Is there a way to have it on by default or maybe a toggle switch for it?
Thanks for reaching out! I can definitely help with this 🙂
Place the following code at the bottom of your theme’s functions.php file:
/**
* Causes calendar to always show Google Map and Link, regardless of individual event settings
*/
add_filter( 'tribe_show_google_map_link', '__return_true' );
This should do the trick! If you have any other questions please reach out, I’m happy to help!
I need to revise my response, on only a certain few it does not work. Not sure why, but I’ll just roll with it. Here’s a link to the page where it does not work >>