using rtl and ltr style on the same site (4 posts)

  1. handyweb1
    Posted 3 years ago #

    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!

  2. damian.smith
    Posted 3 years ago #

    Could you add something like:

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

    And use two different templates

  3. handyweb1
    Posted 3 years ago #

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

  4. Marcel Andrew
    Posted 3 years ago #

    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..


Topic Closed

This topic has been closed to new replies.

About this Topic