Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #333218

    Hi,
    I added this code:
    jQuery(document).ready(function($){
    jQuery(‘img’).removeAttr(‘title’);
    });
    to the bottom of my js/avia.js file, but am still seeing the tool tips on my site:

    I have emptied the cache and all that.
    Can you help me with this? thanks
    Nancy

    • This topic was modified 7 years, 11 months ago by Yigit.
    #333223

    Hey Munford!

    Please remove the code from Avia.js file and following to Functions.php file in Appearance > Editor

    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');

    Regards,
    Yigit

    #333235

    ok – thanks!
    I added it to my child theme and it works fine.

    • This reply was modified 9 years, 5 months ago by Munford.
Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘hide tool tips’ is closed to new replies.