• Resolved middleastcrops

    (@middleastcrops)


    Hi guys,

    I have installed Polylang plugin and translated my website (https://middleastcrops.co) into different languages (English, French, Arabic & Persian). The default language switches is the left-to-right direction. But as the direction differs according to languages, I would like to have the location of the language switcher changed according to each language direction. I mean, when it changes into English/French I want the language icons to be located on the right side of the header, and when it changes into Persian/Arabic the language switcher be placed on the left side of the header. I really appreciate it if anyone can give me a help.

    H. K.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi H.K.,

    I switched to Arabic and Persian on your site and all of the menu items already move to the right for those languages. Here’s a screenshot of how your site looks in Arabic:

    Screen Shot 2016 06 02 at 10 42 35

    Did you manage to resolve this issue or was there something else about the appearance of those menu items you were trying to change?

    Let me know and I can help from there!

    Thread Starter middleastcrops

    (@middleastcrops)

    Siobhan,

    I did change nothing.

    To give more explanation, contrary to the English and French languages, Persian and Arabic pages are written from right to left (right-to-left direction). When the language is French/English, both main menu and languages are shown from left to right, and when it is Persian/Arabic, both main menu and languages are shown from right to left.
    But it is a common format in English/French pages that language icons are located on the right side (opposite direction of menu), and in Arabic/Persian the language switchers are placed on the left side of the page (opposite side).
    So, when the page is Arabic/Persian, I would like to have the language icons be placed on the left side (not the right side as it is currently shown), and when it switches into English/French pages, I would like the language icons to be placed on the right side of the pages (right-to-left direction)

    Hi there,

    So, when the page is Arabic/Persian, I would like to have the language icons be placed on the left side (not the right side as it is currently shown), and when it switches into English/French pages, I would like the language icons to be placed on the right side of the pages (right-to-left direction)

    Thank you for explaining. I got a bit muddled as I assumed you wanted the language icons aligned the same way as your main menu.

    You could try the following CSS to float the icons in different directions:

    #access li.lang-item {
    float: right;
    }
    
    .rtl #access li.lang-item {
        float: left;
    }

    Let me know how that goes.

    Thread Starter middleastcrops

    (@middleastcrops)

    Siobhan,

    Thank you very much.
    It’s working great! Exactly what I wanted to be!

    Cheers,
    H.K.

    I’m so glad to hear that, H.K!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Different Language Switcher Directions for Arabic and English’ is closed to new replies.