unwanted Alt text on images
-
Hello,
All of a sudden my post images displayed an alt text, I believe this happened when I activated Lazy load somehow.
Now it’s displaying all the time even if I turn off the feature. This is not an unusual behaviour, I’d like to keep my titles but not display the tooltip/alt text for every image on my website.
The tool type states > Permanent link to…
I added a JS query to hide titles to no avail
How can I turn this off?Thanks a lot for your help
The blog I need help with is: (visible only to logged in users)
-
Hi there,
That tooltip you see isn’t the image alt text. Alt text for an image is only visible on a site if the image fails to load. Otherwise only screen reader software can “see” it.
That tooltip you’re seeing is coming from a
titleattribute added the the HTML link tag (<a>) that’s making the featured image clickable. We don’t offer an option to set title attributes on featured images on WordPress.com, nor do we set those automatically, so this isn’t coming from our end.Featured image behaviour is controlled by the theme, and I see the same thing happening with featured images on the demo page for the theme you’re using at https://demo.themesdna.com/flashwp/, so this is definitely coming from the theme’s end.
I took a look at your site in the Customizer, but don’t see any option there to disable this. As we don’t make the FlashWP theme you’re using, that’s as far as we’re able to help in this case. Please contact support for the theme directly for more help with this: https://themesdna.com/contact/
-
Hi Kokkieh,
Thank you so much for pointing me in the right direction.
This must have been caused by a theme update because I didn’t see that before yesterday.
I will try to find a way to hide it or contact the developer for this theme.
Again thank you for your help. -
Quick follow-up on this if anyone is interested, I added the following code found on a forum and added it using a plugin called Custom CSS & JS.
This has removed the alt text.jQuery(document).ready(function(){ jQuery("a").hover(function(){ var title = jQuery(this).attr("title"); jQuery(this).attr("tmp_title", title); jQuery(this).attr("title",""); }, function() { // Fired when we leave the element var title = jQuery(this).attr("tmp_title"); jQuery(this).attr("title", title); }); });Again thank you Kokkieh for your help, and sorry for not using the correct terminology when explaining my issue :) I’m an amateur but still learning.
Hope this can be useful for someone else.
- The topic ‘unwanted Alt text on images’ is closed to new replies.