Background of the issue:
I am trying to customize the flags for selected languages on my site hidden link. Specifically, I want to change or customize a flag's shape and color for detected languages.
Symptoms:
No specific issue or error message mentioned.
Questions:
How can I customize the shape of the flags for selected languages in WPML?
How can I change the color of the flags for detected languages in WPML?
WPML doesn’t have built-in options to change the shape or color of language flags, but there are ways to customize them:
To change the shape (e.g., round or square), you can upload your custom flag images.
Please go to WPML >> Languages >> Site Languages, click the Edit Languages link next to the language, upload the new flag image, and save the changes.
Since flags are image files, the best way to change the color is to create and upload colored versions of the flags. WPML doesn’t support automatic color changes, even for browser-detected languages. However, you can use custom CSS if needed to apply visual effects.
Please try this after taking a full site backup, and let us know your feedback. You can also refer to the following documentation for more details: