Default icons in Polylang are too small and blurry so it’s better to use a custom designed one with higher resolutions and wider dimensions.
To do this, create a
/polylang directory either in
wp-content or directly in your main or child theme. After that, place the flag icons of your choice in that
The most important step is the naming convention. Never forget to rename those icon files to match the original ones. For example, I have a newly designed
Cambodian flag so I name it
km.png. And for the newly designed
US flag, I name it
en_US.png. See! they both match the original ones.
The last step is to tell Polylang you’re using custom flags.
Languages => Settings then click on
URL Modifications and do nothing, then hit
That’s it! Let me know if this works for you.