How to hide 'ALT' text on image hover

Posted in: Newspaper
Post count: 12

I’ve tried adding this to style.css but it didn’t work..

.wp-caption .wp-caption-text:hover{
    display:none !important;
}

Site is http://www.thelotusforums.com – any suggestions please 🙂

  • This topic was modified 9 years by bibs2017.
Post count: 20688

Hi,

I believe that cannot be achieved through Css. The only way would be to manually remove the title from each image in the media library. You can find more information in these topics about using code to remove the title attribute
https://stackoverflow.com/questions/8078388/hiding-title-tags-on-hover
https://stackoverflow.com/questions/15364063/is-it-possible-to-hide-the-title-from-a-link-with-css

Thanks

Post count: 12

The trouble is that images with an ALT tag are much better for SEO.

Post count: 20688

Hi,

Then it would be better to leave them as they are and not make any modifications at all, to benefit from that advantage. It would probably be too complicated to make modifications in the theme, or by other means to hide them on hover.

Thanks

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.