Removing "+ Google Maps" from event title

Home Forums Calendar Products Events Calendar PRO Removing "+ Google Maps" from event title

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #80696
    Marlinda
    Participant

    Hey,
    I want to kep using google maps on the actual event page, but in the listing the “+ Google Maps link” seems unnecessary. Can I remove this somehow (so that it’s not overridden on updates)? I realize that will mean diving into a bit of code. I have no problem with that.

    Cheers,

    Co

    #80811
    Barry
    Member

    Sorry, Co, but I’m not 100% sure which one of those links you are referring to. I’m sure it’s possible to do what you want, but I don’t want to propose a fix that targets the wrong link, either – can you provide a specific example?

    #81024
    Marlinda
    Participant

    Alright, my bad, I should’ve been a bit more clear in my explanation! See screenshot here: http://i.imgur.com/t5fYdCP.jpg
    The page is the standard event overview (www.[website].com/events . The List variant (not the calendar). As part of the address data it also shows the Google Maps link as highlighted in the screenshot. I would like that link (and its text) removed 🙂

    #81045
    Barry
    Member

    So a short snippet like the following, which you could add to your theme’s functions.php file, will probably help:

    add_filter( 'tribe_event_meta_gmap_link', '__return_empty_string' );

    #81185
    Marlinda
    Participant

    Yes! That was exactly what I was looking for. Thank you so much 🙂

    #81188
    Barry
    Member

    Awesome 🙂

    I’ll mark this thread as closed – but if you have a moment and want to leave a comment/review over on our wordpress.org page that would be much appreciated.

    Cheers!

    #982591
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Removing "+ Google Maps" from event title’ is closed to new replies.