Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #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,

    #649842

    Hey 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,
    Yigit

    #649855

    Hi,
    I’m sorry, I add the code but it doesn’t work.. it’s still showing yellow titles (adress) on hover :(
    Thank you,

    #649857

    Hi!

    Can you please post the link to your page?
    We also may need a temporary admin login :)

    Best regards,
    Yigit

    #649863

    Post in private, thanks

    #651498

    Hi,

    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,
    Yigit

    #865214

    hi,

    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

    #865231

    d

    • This reply was modified 6 years, 7 months ago by schnippel.
    #865839

    Hi schnippel,

    I checked the page, the info appears only on click, not on hover. Is this not the effect you wanted?

    Best regards,
    Victoria

    #865850

    hi 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

    #866916

    Hi,

    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

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