Dear Team,
Can you please tell me how can I remove the names of the images of the website appearing when hovering with the mouse ?
Thank you and regards,
Natacha
Hey HulaSlim,
Thanks for your question I assume that your are referring to the “title” attribute for the images
Try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:
function custom_remove_title_script() { ?>
<script>
(function($){
$("*").hover(function(){
$(this).removeAttr("title");
});
})(jQuery);
</script>
<?php
}
add_action('wp_footer', 'custom_remove_title_script');
Best regards,
Mike
Hi,
You should add the code Mike shared into Functions.php file of your child theme and not Style.css file.
Please add it to the correct file and it should work :)
Regards,
Yigit
Hi Yigit,
Sorry to contradict you, but in appearence / editor, I only have one window whose title is “Enfold Child: style.css”.
Can you please check in my WP ?
Thank you
Regards,
HulaSlim
Dear Mike,
I’m so sorry I couldn’t see that link. I didn’t know it was on the right side.
But I cheked all the images, and not a single one still shows the title when hovering.
Thank you so much for your help,
Kind regards,
HulaSlim
Hi,
Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.
Best regards,
Mike