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.
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
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, !!!