Home Forums WoodMart support forum Accessibility issue with “WPML Languages” widget in the header builder

Accessibility issue with “WPML Languages” widget in the header builder

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #642013

    eliv3n
    Participant

    When scanning slimmedicine.com trough https://pagespeed.web.dev/ you will find the accessibility issue both in Mobile and Desktop in the “WPML Languages” widget which is in the Woodmart header builder.

    Accessibility issue:
    Image elements have [alt] attributes that are redundant text.
    This issue is happening when you show the FLAG icon in the language switcher, because the ALT for the flag will be exactly same text as the Title “English” which is showing duplication and that’s why the error is showing.

    Suggestion:
    The ideal is to change the ALT from English to English Language, or to EN or anything rather than the text to prevent the duplication.

    I appreciate if you can create a patch for this issue, or alternatively, provide me with an Snippet to solve this matter.

    Please note that I currently removed the FLAG icon in my website so the accessibility issue is disappeared. it will appear again if I add the Flag icon into the language switcher.

    Attachments:
    You must be logged in to view attached files.
    #642360

    Luke Nielsen
    Keymaster

    Hello,

    The thing is that the flag icons come from WPML, so please check how it works with some default WordPress themes like WooCommerce Storefront to understand if it is our theme issue or not.

    Kind Regards

Viewing 2 posts - 1 through 2 (of 2 total)