The easiest way I know:
– copy the whole flag-directory to your theme-directory
– copy the us.png to gb.png
– insert the name of your custom flag-directory in the configuration
Cheers,
Dennis.
Thanks Dennis. That did the trick!
Thanks for that! I had the same problem. I wanted to display a UK flag instead of US flag, when en_US is selected.
I’d like to add some details to the procedure to make it easier for someone of my level (relative newbie) to understand and apply:
– Procedure to change US flag to UK flag for en_US:
Download flags zip file from this famfamfam.com URL to your computer:
[Link to non-GPL file removed]
“Extract all” from the zip file to a ‘flags’ subdirectory and upload everything in this subdirectory to your theme images directory. In my case this is my Studiopress Minimum child theme:
/public_html/wp-content/themes/minimum/images
So now you have all your flags in:
/public_html/wp-content/themes/minimum/images/flags
This flags subdirectory contains the UK flag (gb.png) and the US flag (us.png) that Multisite Language Switcher uses:
/public_html/wp-content/themes/minimum/images/flags/png
Next, delete us.png (or rename it to us_old.png).
Then copy gb.png to us.png.
Final step is to update Multisite Language Switcher Options. Update the “Custom URL for flag-images” setting on the relevant sites in your multisite to point to your local png subdirectory, in this case:
/public_html/wp-content/themes/minimum/images/flags/png
And you’re done…