ALT is empty
-
Hi TranslatePress team,
the language switcher outputs flag images like this:
<img src=”…/en_US.svg” class=”trp-flag-image” alt=”” role=”presentation”>
While this may be acceptable for purely decorative images, it causes problems in practice:- SEO and accessibility audit tools flag this as “empty ALT attribute”
- There is no filter, hook or setting to modify the ALT attribute server-side
- The current language flag and the dropdown flags are handled inconsistently
Because the HTML is generated server-side, JavaScript fixes are not sufficient for SEO crawlers that do not execute JS.
Request:
Please provide either - a filter to modify the flag markup (ALT / role), or
- an option to define ALT text for flag images, or
- a way to disable flag images entirely in favor of text-only output.
This would allow developers to meet both accessibility and SEO requirements without hacking plugin files.
Thank you!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.