Okay
  Public Ticket #659523
Hide Title of Map Marker
Closed

Comments

  • Jeff started the conversation

    Hello,

    My purchase code is: 98f23e98-7324-4f94-b9cc-f60d00c75d64

    Is there a way to hide the hover image title from displaying when hovering over the map marker on the Contact Us page? I don't mean when you click on the marker, i mean when you hover your mouse over it?

    See screenshot. Thank you,

    Jeff


  •  1,710
    Barry replied

    Hi Jeff

    The only way to hide it is to leave the infowindow content empty. The infowindow content and title attribute are connected to each other. Or you have to edit the map.js file and manually edit the title attribute for the marker, and use it in with the child theme.

    Take care

    Best regards,
    Barry
    QreativeThemes.com  |  WordPress Themes

  • Jeff replied

    Ahhh Thank you Barry. That is unfortunate as seeing the code when you hover over it looks rather unsightly.

    I found the map.js file and I do use a child theme. How would you exactly edit the map.js file to accomplish what you suggest?


    Jeff

  •  1,710
    Barry replied

    Hi Jeff

    Please note that code customisations are not part of the support. But to send you in the right direction:

    You have to create a separate variable for the infowindow to store the content in. Then add a addListener to to marker which opens up the infowindow on click. Then leave the title under the mapoptions variable empty. More info you can find in the Google Map Docs

    Best regards,
    Barry
    QreativeThemes.com  |  WordPress Themes