-
AuthorPosts
-
June 12, 2022 at 9:22 am #1354958
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,
NatachaJune 12, 2022 at 10:54 pm #1355003Hey 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,
MikeJune 14, 2022 at 1:26 pm #1355179This reply has been marked as private.June 14, 2022 at 1:28 pm #1355180Hi,
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,
YigitJune 15, 2022 at 12:41 am #1355267Hi 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,
HulaSlimJune 15, 2022 at 1:05 am #1355273June 15, 2022 at 1:37 pm #1355339Dear 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,
HulaSlimJune 15, 2022 at 1:45 pm #1355341Hi,
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 -
AuthorPosts
- The topic ‘Image names appearing on hover’ is closed to new replies.

