Title: ALT is empty
Last modified: January 21, 2026

---

# ALT is empty

 *  Resolved [nickless667](https://wordpress.org/support/users/nickless667/)
 * (@nickless667)
 * [3 months, 2 weeks ago](https://wordpress.org/support/topic/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)

 *  Plugin Support [Anghel Emanuel](https://wordpress.org/support/users/anghelemanuel99/)
 * (@anghelemanuel99)
 * [3 months, 1 week ago](https://wordpress.org/support/topic/alt-is-empty/#post-18796053)
 * Hello there,
 * Thank you for reaching out to us!
 * You should be able to add a different alt-tag to a flag, if you [change the default flag icon](https://translatepress.com/docs/developers/replace-default-flags/)
   of a language with a different one, from your media folder. In the media folder,
   you should be able to add the alt tag you want (this is not related to our code).
 * Let me know about this!
 * Kind Regards,
 *  Thread Starter [nickless667](https://wordpress.org/support/users/nickless667/)
 * (@nickless667)
 * [3 months, 1 week ago](https://wordpress.org/support/topic/alt-is-empty/#post-18796110)
 * Yes, of course. That’s the solution. I feel a little silly for not having figured
   it out myself. Thank you very much.
 *  Thread Starter [nickless667](https://wordpress.org/support/users/nickless667/)
 * (@nickless667)
 * [3 months, 1 week ago](https://wordpress.org/support/topic/alt-is-empty/#post-18796111)
 * .

Viewing 3 replies - 1 through 3 (of 3 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Falt-is-empty%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/translatepress-multilingual/assets/icon.svg?rev=3166541)
 * [Translate Multilingual sites - TranslatePress](https://wordpress.org/plugins/translatepress-multilingual/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/translatepress-multilingual/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/translatepress-multilingual/)
 * [Active Topics](https://wordpress.org/support/plugin/translatepress-multilingual/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/translatepress-multilingual/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/translatepress-multilingual/reviews/)

## Tags

 * [alt](https://wordpress.org/support/topic-tag/alt/)
 * [role](https://wordpress.org/support/topic-tag/role/)
 * [seo](https://wordpress.org/support/topic-tag/seo/)

 * 3 replies
 * 2 participants
 * Last reply from: [nickless667](https://wordpress.org/support/users/nickless667/)
 * Last activity: [3 months, 1 week ago](https://wordpress.org/support/topic/alt-is-empty/#post-18796111)
 * Status: resolved