Tagged: Masonry Gallery, tooltip
Hello,
and sorry, but can you Re-Open
https://kriesi.at/support/topic/remove-tooltips-title-attributes-from-masonry-gallery/#post-462053
because the suggested Code eliminates the caption under the lightbox images also.
Thanks.
Hi Sigmund!
Opened. Can you please post more details on the first topic? Thanks
Cheers!
Yigit
Hi Yigit,
Yes. Your code:
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');
in the function.php is good for not showing the yellow tooltips on hover images, but it also deletes the caption under the masonry gallery image lightbox.
Regards
Hey!
The code i posted removes “title” attribute from A and IMG tagged elements. Lightbox get the title from “title” attribute so that is expected.
Please also see – https://kriesi.at/support/topic/remove-tooltips-title-attributes-from-masonry-gallery/#post-462307
Best regards,
Yigit