No alt text for image links
-
On attachment and gallery pages, if you have an image that has not been provided with alternate text, it is still the only content of a link, which means the link has no accessible name. This is an accessibility error. Has anyone written a filter for the_content for this use case, where, when no alt text has been provided, some placeholder text is provided, such as, “no text alternative provided.” This filter should only be used in instances where the image serves as the content for a link. For instance, there are places where you would want to have a null alt attribute used instead, as when the image is displayed in a purely decorative context that is not the content of a link.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘No alt text for image links’ is closed to new replies.