Support » Fixing WordPress » using rtl and ltr style on the same site

  • handyweb1

    (@handyweb1)


    hi there,

    say I have a multilingual site – with both RTL language and LTR language.

    How can I make the site be RTL while the user views the RTL language, and LTR while viewing LTR language?

    i.e http://www.domain.com = would be LTR
    and http://www.domain.com/he = would be RTL

    thanks alot!

Viewing 3 replies - 1 through 3 (of 3 total)
  • damian.smith

    (@damiansmith)

    Could you add something like:

    #rtl-wrapper { direction:rtl; }
    
    #ltr-wrapper { direction:ltr; }

    And use two different templates

    handyweb1

    (@handyweb1)

    ok, still if I add these lines, how would wodpress know what to display on each language?

    First: you need a compatible theme like twentyeleven or twentytwelve with rtl.css file aside style.css
    Second : the theme languages folder must contain the rtl language file (he.mo or equivalent)
    Third : you can test a plugin as xili-language or other based on switching style and mo file according current language of post or list of posts..

    M.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘using rtl and ltr style on the same site’ is closed to new replies.