Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #18828

    Hello all,

    I have one websites with two languages (in fact ; two websites)

    1 – (French)

    2 – (English)

    When anyone goes on he is linked on /fr or /en depending the language of the browser.

    But I would like to allow anyone to switch EN to FR or FR to EN by click a little flag on each website.

    How to simply add a little picture (flag) with link on the top right of each website ?

    Thank you



    This is actually pretty simple since its just two images that need to be linked. In your header.php replace:

    <!--end head-->


    <div class="language-select">
    <a href=""><img src="yourimage.png" /></a>
    <a href=""><img src="yourimage.png" /></a>
    <!--end head-->

    Just replace yourimage.png with the url for the image of the flag you want to use for each item. I’ve added in the links since you already provided them.

    Then, in your style.css add the following all the way at the bottom of the files:

    .language-select {
    position: absolute;
    top: 0;
    right: 0;

    It may need a bit of adjusting to your exact taste, but that should get you 90% of the way there :)




    Thank you!


    Glad we could help :)

    Let us know if you have any other questions or issues.



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

The topic ‘Add a little flag in the top right on the website to change language’ is closed to new replies.