Hello guys,
I am trying do none-display or remove the title in the box, which is showing, when i hover an image in my gallery :/
Only fount some tips using the functions.php (i dont use a child theme yet…and even dont know where i find the “right” functions.php)
Can you please help me out? Example in private content.
Thank you and have great weekend!
Vincent
Hey intimadecom,
Try adding this code to the end of your functions.php file in Appearance > Editor:
function custom_script(){
?>
<script>
jQuery(window).load(function(){
jQuery('a').removeAttr('title');
jQuery('img').removeAttr('title');
});
</script>
<?php
}
add_action('wp_footer', 'custom_script');
or if this is for just one page, or two, you can add this code to a “code block” element at the top of your page:
<script>
jQuery(window).load(function(){
jQuery('a').removeAttr('title');
jQuery('img').removeAttr('title');
});
</script>
Best regards,
Mike
It does not work. I’ve added both of your codes, together and seperated at the end of the functions.php.
Any other ideas? Please!
It removes the title in the lightbox. but i want to remove it just for the gallery hover effect as you can see it in the private link…