How to add the image title attribute to images used in blocks on pages or posts?
-
When adding blocks with images or mixed content on pages or posts I cannot add an image attribute title text.
But this is needed for SEO and the mouse over hover effect showing the image title for visitors next to the mouse cursor.
We tried switching to the code editor and adding it in the image tag as
title=”My Image Title Text”.
But this doesn’t work: The block editor then shows an unexpected invalid entry.
But the code is not invalid!
Now, as we need the image title attribute, to show the title on mouse over hovering over the image and to inform Google of what’s it about our question is:
How can we add image titles (html attributes NOT the media library titles!) without breaking our site?
thanks for help!
Cheers, j.
- The topic ‘How to add the image title attribute to images used in blocks on pages or posts?’ is closed to new replies.