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

    Hi at Enfold,
    I trying hard to remove the yellow boxes which appear when I am hovering over a image of my masonry gallery. I have tried Josues Tipp (link) and put the code at the end of the avia.js. Still it does not work.
    Any help would be great!
    Regards

    • This topic was modified 9 years, 5 months ago by Sigmund.
    #462053

    Hi Sigmund!

    Please add following code 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');

    Best regards,
    Yigit

    #462065

    Great, it works, but this code eliminates the caption under the lightbox images also. Is there a solution to only target the tooltips?

    Regards

    • This reply was modified 9 years, 5 months ago by Sigmund.
    #462307

    Hi!

    Note that the code above will remove all title attributes on links and images which is not good for SEO. It’s quite beneficial to keep the title of the images to add more context to the page, you can modify the image title on Media > Library panel. https://www.feedthebot.com/titleandalttags.html

    If you’re wondering how to remove those tooltip, unfortunately, that is a default browser feature so we can’t modify it.

    Best regards,
    Ismael

    #462856

    Hi,
    thanks for the clarification. I have said the same to my customer :-( If you take a look at my page you will see that the tooltip is not showing the title (“Titel”) of the media library but the “Bildunterschrift” from the media library. Even if I let the Titel empty. So on mouse over we have the caption coming up and the tooltip, both with the same words. Can you check, please?

    Best Regards

    #463315

    Hi!

    that’s expected behavior and as already said we can’t do much about it, as it is the a normal browser feature.

    Let us know in a new ticket if you have another question/issue. We are happy to assist.

    Best regards,
    Andy

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