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

    Hi, I searched the forum a lot but did not find working solution.
    With mouse over an image in a gallery, after some seconds shows the name of the big image file. Same with Thumbnails underneath. Same effect also with easy slider, after a while turns up the image file name. I tried different CSS quickcodes – no result.
    I tried the recommended .js code on js/avia.js

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

    On easy slider this worked fine, perfect
    But on the (simple) gallery element this code avoided to show the file name, but instead it shows the description text (or the caption text,if description is not present). I want caption text not to be empty because I like the caption text on black background when hovering over the small thumbnail gallery pictures below the big picture.
    By the way: In a gallery shows only the filename or caption or description of the first gallery image no matter which image is shown in the main (big) image.
    Do you have any advice? Thanx in advance.

    #434091

    Hey hoqui!

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

    Cheers!
    Yigit

    #435152

    Hi Yigit,
    you gave great advice, your code does exactly what I wanted, the tooltips don’t show anymore on mouse over a linked image.
    Great! Thank you very much for your precious help. Excellent support, !!!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Switch off tooltips when mouse over gallery or easy slider’ is closed to new replies.