-
AuthorPosts
-
April 14, 2015 at 1:40 pm #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?
April 14, 2015 at 2:29 pm #428229Hey DavyE!
Can you please post the link to your page where we can see Gmaps element to provide you accurate solution?
Best regards,
YigitApril 14, 2015 at 2:31 pm #428231April 14, 2015 at 2:45 pm #428242Hey!
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!
YigitApril 15, 2015 at 9:38 am #428760Unfortunately 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.
April 15, 2015 at 11:14 am #428794Hey!
Do you mind creating a temporary admin login and posting it here privately so we can look into it?
Cheers!
YigitApril 15, 2015 at 11:17 am #428796This reply has been marked as private.April 15, 2015 at 11:28 am #428803Hi!
I moved the code higher and adjusted a little bit. Please review your site now :)
Best regards,
YigitApril 15, 2015 at 11:35 am #428813Thanks 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?April 15, 2015 at 11:43 am #428819Hey!
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,
YigitMay 5, 2015 at 11:43 am #439642Hi,
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
BastianMay 5, 2015 at 2:09 pm #439697Hey!
Please use the code i posted here – https://kriesi.at/support/topic/google-maps-disable-title-tags-on-markers/#post-428242
Best regards,
YigitMay 5, 2015 at 2:42 pm #439719Hi 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!
BastianMay 5, 2015 at 2:43 pm #439722June 14, 2016 at 2:36 pm #648021Hi,
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,June 14, 2016 at 4:51 pm #648122Hi,
@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 -
AuthorPosts
- You must be logged in to reply to this topic.