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

    Hello all,

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

    1 – http://www.recital-audio.com/fr (French)

    2 – http://www.recital-audio.com/en (English)

    When anyone goes on http://www.recital.com 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

    #101100

    Hey

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

    <!--end head-->

    with

    <div class="language-select">
    <a href="http://www.recital-audio.com/fr"><img src="yourimage.png" /></a>
    <a href="http://www.recital-audio.com/en"><img src="yourimage.png" /></a>
    </div>
    <!--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 :)

    Regards,

    Devin

    #101101

    Thank you!

    #101102

    Glad we could help :)

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

    Regards,

    Devin

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.