-
AuthorPosts
-
June 19, 2015 at 4:51 pm #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, 6 months ago by Sigmund.
June 19, 2015 at 4:54 pm #462053Hi 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,
YigitJune 19, 2015 at 5:18 pm #462065Great, 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, 6 months ago by Sigmund.
June 21, 2015 at 10:36 am #462307Hi!
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,
IsmaelJune 22, 2015 at 3:55 pm #462856Hi,
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
June 23, 2015 at 12:56 pm #463315Hi!
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 -
AuthorPosts
- You must be logged in to reply to this topic.