Every time I hover on an image in a Wordpress page made with Visual Composer it displays the alt text or caption when i remove the alt text when uploading an image.

For SEO reasons I would like to use the alt text, but I don't want it to be visible on the front end when hovering.

Is there any way to disable this with a short code in CSS?


i had also the same issue when using the AVADA theme. It appends the title attribute on the image which is showing the text/caption when its being on hover.

<script type="text/javascript">
/* The first line waits until the page has finished to load and is ready to manipulate */
    /* remove the 'title' attribute of all <img /> tags */
  • I tried adding that code to custom css setting but didn't work. Also tried adding it to additional javascript, but still shows the alt tags. – Mike Jul 24 '17 at 21:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.