Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #678701

    I’d like to hide the tooltip that the browser shows when mousing over the masonry gallery thumbnail images.

    I’ve tried a suggestion from:

    In that post its suggested to use the following function:

    •••••••••••••••••••

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

    •••••••••••••••••••

    The trouble with this solution is that in addition to removing the TOOLTIP from the small gallery thumbnail images, it unfortunatly also removes the CAPTIONS from any of the lightbox enlargements.

    Is it possible the script could be modified to only affect the thumbnails and not the enlargements?

    #679228

    Can anyone help with this?

    #680473

    Hi,

    Could you post a link to the site in question so that we can take a closer look please?

    Regards,
    Rikard

    #680475

    Hi,

    We are sorry for the delay. We would like to check the page but the url is missing. Are you referring to the browser tooltip? Unfortunately, we cannot remove that tooltip without removing the title attribute which is where the lightbox fetch the caption info.

    Best regards,
    Ismael

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