Support » Plugin: Weglot Translate - Translate your WordPress website and go multilingual » Why is_rtl() is returning false even for the rtl languages?

  • Resolved webcodingplace

    (@webcodingplace)


    Hi, This plugin is good but WordPress doesn’t know that language is changed. Even, no rtl class is added to the body tag on the frontend.

    When I checked WordPress’s default function is_rtl(), it’s also returning false.

    Can you please fix this issue, or guide me to any hook where I can dynamically change WordPress’s layout as per the language?

    Regards

Viewing 1 replies (of 1 total)
  • Plugin Contributor Edson Galina Fortes

    (@glx77)

    Hi @webcodingplace hope you’re fine.I’m Edson from weglot. sorry to only answer now. I’ve just make a test with arabic language and it seems to work :

    when I switch to arabic, the is_rtl() function return me true and I can see the class rtl added to my body class list. you can see my screen here : https://ibb.co/PGDT3cK

    Can you tell me on which language you have the problem and in which version of the plugin ?

    Regards

Viewing 1 replies (of 1 total)
  • The topic ‘Why is_rtl() is returning false even for the rtl languages?’ is closed to new replies.