-
AuthorPosts
-
June 16, 2016 at 11:23 am #649128
Hi,
I 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 yellow titles (adress) on hover.
I tried to put the code you give on #648122 in my functions.php child theme but it doesn’t work..
Yigit ask me to start a new thread,
Thank you,June 17, 2016 at 3:49 pm #649842Hey Dradule,
Please add following code to Functions.php file in Appearance > Editor
function custom_class_link(){ ?> <script> jQuery(window).load(function(){ jQuery('.avia-google-map-container *').removeAttr('title'); }); </script> <?php } add_action('wp_footer', 'custom_class_link');
Best regards,
YigitJune 17, 2016 at 4:05 pm #649855Hi,
I’m sorry, I add the code but it doesn’t work.. it’s still showing yellow titles (adress) on hover :(
Thank you,June 17, 2016 at 4:06 pm #649857Hi!
Can you please post the link to your page?
We also may need a temporary admin login :)Best regards,
YigitJune 17, 2016 at 4:17 pm #649863Post in private, thanks
June 21, 2016 at 2:27 pm #651498Hi,
I adjusted the code a little and it should be working but for some reason it does not. Can you please try de-activating all active plugins and check if that helps?
Best regards,
YigitOctober 17, 2017 at 10:21 am #865214hi,
i have the same problem. i copy the code:
function custom_class_link(){
?>
<script>
jQuery(window).load(function(){
jQuery(‘.avia-google-map-container *’).removeAttr(‘title’);
});
</script>
<?php
}
add_action(‘wp_footer’, ‘custom_class_link’);in my child theme functions.php above
can you help
kr dirk
October 17, 2017 at 11:13 am #865231d
- This reply was modified 7 years, 2 months ago by schnippel.
October 18, 2017 at 5:21 pm #865839Hi schnippel,
I checked the page, the info appears only on click, not on hover. Is this not the effect you wanted?
Best regards,
VictoriaOctober 18, 2017 at 5:33 pm #865850hi victoria,
the street info also appears on hover. i tested it in chrome, firefox and safari. you can see it, if you leave the mouse 1 snd over the icons on the map
kr dirk
October 21, 2017 at 3:15 am #866916Hi,
Please try this script in the functions.php file.
// custom script add_action( 'wp_footer', 'ava_custom_script' ); function ava_custom_script() { ?> <script type="text/javascript"> (function($) { $('.gmnoprint').on('mouseover', function() { $(this).removeAttr('title'); }); })(jQuery); </script> <?php }
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.