Google Map Link hide by default

Home Forums Calendar Products Events Calendar PRO Google Map Link hide by default

  • This topic has 4 replies, 2 voices, and was last updated 9 years ago by Sandra.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1267523
    Sandra
    Participant

    I know this was a feature request but is it possible to uncheck the “show google Map link” in every event?
    Where do I finde the code for that?
    Thanks!

    #1269142
    Trisha
    Member

    Hi, Sandra!

    I can help with this!

    We can’t uncheck the box by default but there is a filter that will allow you to hide that on the front end sitewide.

    Paste the following code at the bottom of the functions.php file in your theme directory:

    /**
     * Causes calendar to always hide Google Map Link, regardless of individual event settings
     */
    add_filter( 'tribe_show_google_map_link', '__return_false' );

    That should get you set up! Let me know how it goes!

    Cheers,
    Trisha

    #1269356
    Sandra
    Participant

    this worked! Thank you! Great support!

    #1271391
    Trisha
    Member

    Hi Sandra!

    Glad to hear it worked for you! Thank you! 🙂

    Cheers,
    Trisha

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Google Map Link hide by default’ is closed to new replies.