Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #408519

    Hi there,

    For some reason I can’t get rid of the tooltip that shows up when I hover over the images in my masonry galleries. I tried both codes below but nothing seems to work. What am I missing?

    jQuery(document).ready(function($){
    jQuery('img').removeAttr('title');
    });

    (addes to avia.js)

    add_action(‘remove_masonry_tooltip’);
    function remove_masonry_tooltip(){
    ?>
    <script>
    jQuery(window).load(function(){
    jQuery(‘.av-masonry-container a, .av-masonry-container img’).removeAttr(‘title’);
    });
    </script>
    <?php
    }

    (added to functions.php)

    Hope you can help me out here.

    Thanks and kind regards,
    Charlotte

    #408874

    Hey Boulanger!

    Please use following code in Functions.php file instead

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

    Cheers!
    Yigit

    #408920

    Hi Yigit,
    The tooltip still shows. I did empty Cache. Could it be the ‘alt’ text that’s still there?
    Cheers!
    Charlotte

    #408923

    Hey!

    Functions.php file of your child theme is not working. I added the code to parent theme file and it worked fine.
    Please re-install child theme using pre-built version that you can download from here – http://kriesi.at/documentation/enfold/downloads/

    Best regards,
    Yigit

    #423706

    Yes! That did the job.
    Many thanks!
    Charlotte

    #423806

    Hey!

    Great, glad we could help.

    Cheers!
    Rikard

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