Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #428206

    Hi,

    People complained about the misleading info when hovering over a marker on the Google Maps element. It only shows the street name. They should click to see the full address (location name, street name & nr, city, zip code, …).

    I’ve looked around in the code, but I’m just not skilled enough to locate it. Is there a way to disable this title tag on the markers?

    #428229

    Hey DavyE!

    Can you please post the link to your page where we can see Gmaps element to provide you accurate solution?

    Best regards,
    Yigit

    #428231

    Hi Yigit,

    Sure can: http://goo.gl/Jo8nld

    Thanks in advance!

    #428242

    Hey!

    Please add following code to Functions.php file in Appearance > Editor

    function add_custom_tooltip(){
    ?>
    <script>
    jQuery(window).load(function(){
    jQuery('.gmnoprint').removeAttr('title');
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'add_custom_tooltip');

    Cheers!
    Yigit

    #428760

    Unfortunately this doesn’t seem to be working. Have added it to the bottom of functions.php, but the title tags still show the street name when hovering over the markers.

    #428794

    Hey!

    Do you mind creating a temporary admin login and posting it here privately so we can look into it?

    Cheers!
    Yigit

    #428796
    This reply has been marked as private.
    #428803

    Hi!

    I moved the code higher and adjusted a little bit. Please review your site now :)

    Best regards,
    Yigit

    #428813

    Thanks a lot, Yigit, it works great now!

    Only one thing:
    I noticed the title tag was still there the first few seconds. In your code I see 3000, so I tried changing it to 1000 and it is better. Of course, there was probably a reason why you set it to 3000? Or is 1000 just as good?

    #428819

    Hey!

    1000 is just as good. Code will be triggered 1 second after page load. You can try 500 as well.
    You are welcome DavyE, always glad to help :)

    Regards,
    Yigit

    #439642

    Hi,

    how can I remove this little hover (with the street name) completely?
    I’m using a map with a couple of custom markers across europe and the hover effect with the street name make no sense in my case.

    Thanks in advance
    Bastian

    #439697

    Hey!

    Please use the code i posted here – https://kriesi.at/support/topic/google-maps-disable-title-tags-on-markers/#post-428242

    Best regards,
    Yigit

    #439719

    Hi Yigit,

    thanks for your fast answer. But the code above is something different… Isn’t it?
    The question in that post was how to show the complete address instead of just the street name. My question was how can I remove the whole hover effect.

    And by the way, some parts of the answer are locked for me because they are marked as private…

    So, do you have another idea?

    But thanks anyway for your help!
    Bastian

    #439722

    Hi!

    Can you please post the link to your website Bastian?

    Cheers!
    Yigit

    #648021

    Hi,

    I also wish to know how can I remove the whole hover effect on Google map markers, to only show information when we click on the marker and disable the title (adress) on hover.
    I tried to put the code you give in my functions.php child theme but it doesn’t work..
    Thank you,

    #648122

    Hi,


    @Dradule
    Can you please start a new thread and attach a link to your website in private content field and screenshots showing the changes you would like to make? You can upload your screenshots on imgur.com or Dropbox public folder and post the links in your thread.

    Best regards,
    Yigit

Viewing 16 posts - 1 through 16 (of 16 total)
  • You must be logged in to reply to this topic.