Multisite Language Switcher
[resolved] Change flag (4 posts)

  1. JonathanFokker
    Posted 3 years ago #


    I have a Multisite install with three websites:
    1) English
    2) Spanish
    3) German

    The English .mo file I have is American English. Automatically the plugin gets the American flag. I would like to have a custom flag, namely the UK one.
    The custom-flag field is only for custom flag folders and not specific for flag you told me in another post.

    How do I do that?



  2. Dennis Ploetner
    Plugin Author

    Posted 3 years ago #

    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


  3. JonathanFokker
    Posted 3 years ago #

    Thanks Dennis. That did the trick!

  4. henscu
    Posted 3 years ago #

    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:


    So now you have all your flags in:


    This flags subdirectory contains the UK flag (gb.png) and the US flag (us.png) that Multisite Language Switcher uses:


    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:


    And you're done...

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Multisite Language Switcher
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic