Tagged: google maps element
Having the first line of the address serve as the tooltip for the Google Map markers is awkward. It would be great if the first field were ‘Name’ (as in business name), so that when a user hovered over a map marker that would show (instead of the first line of the address).
Short of being able to show the business name, I tried to hide the marker tooltip by using code I found in another post…
function add_custom_tooltip(){
?>
<script>
jQuery(window).load(function(){
jQuery('.gmnoprint').removeAttr('title');
});
</script>
<?php
}
add_action('wp_footer', 'add_custom_tooltip');
?>
… but this had no effect (see link in private content).
How can I remove the tooltip so it no longer shows (short of being able to show the first line of the contents of the info bubble)?
Hey lzevon,
Try this code in the General Styling > Quick CSS field:
.gmnoprint {
display: none !important;
}
Best regards,
Mike
I tried this, but I still want users to be able to expand the info bubble, what you suggest prevents this from happening.