After inserting an image into an article in WordPress, adding alt text in the media library may not be reflected. This problem is often caused by the alt text not being set at the time the image is inserted into the post, resulting in the alt text not appearing on the post. Below we will discuss how to resolve this issue and why alt text should be set correctly.
Why is the alt text not reflected?
In WordPress, if alt text is not set when an image is inserted into a post, it will not be reflected in the images in the post even if alt text is subsequently added in the media library. This is because the alt attribute is saved directly in the article as HTML code when the image is inserted.
How to re-set alt text
- Go to the Media Library and select the image for which you want to add alt text.
- Enter a description in the “Alternative Text” field. This is an important element in SEO.
- Return to the article editing screen, delete the corresponding image, and then insert the image again from the media library. At this time, the alt text you set will be automatically reflected.
Importance of alt text and specific examples
Alt text is important for search engines to understand the content of an image because it is reflected in the search results of the image in SEO. It is also necessary for visually impaired users using screen readers.
As an example, if a fishing blog posts photos of seabass fishing, setting alt text such as “Seabass fishing” will make it easier to find in image searches.