As I know, rtl has to be supported by the theme.
When I develop a theme I always add rtl support to the theme. Because, the theme controls the output, not Polylang.
#The Coder , i understand what you said. How about when you have pages with two different types of languages and when you open the one with English language it’s totally fine but when you i open a page with my local language the ‘Wysiwyg’ editor still haves English language in it. So how can i Make it change accordingly?
Thank you in advance.
Moosa
You are talking about the back end, not the fron tend, right?!
Polylang is for translating content, not for the admin page.
For the admin page you have to follow the guide how to set up WordPress language.
I mean in polylang if you make pages in two different languages it should change the font and language accordingly inside the ‘Wysiwyg’ editor of respective pages ? One page with left to right in english and the other page right to left in my local language. Using polylang i can create two types of pages ( right to left and left to right with each country flag) as default english text is available in both language type pages. I want English to stay the way as it is but when i open a page in my local language from right to left i want it to have my local language font in the back end and front end.
Plugin Author
Chouby
(@chouby)
Thank you, 1 for front end and 1 for back end style sheet. I understood, but how do it switch places ? I mean how does the rtl back end and front end style sheets get switch inside the editor or front end ? Example: in the back end when i open a rtl page created using polylang how can polylang or the theme know to switch the style sheet and vise versa ? if you cannot help in this last question please direct me to a side where i can clear this information.
Thank you in Advance.
Plugin Author
Chouby
(@chouby)
This is all handled automatically by WordPress based on the language selected by Polylang.
Note: I wondered why the editor-style-rtl.css was not used anymore in recent Twenty themes. This comment explains why: https://github.com/WordPress/WordPress/blob/4.9.6/wp-includes/theme.php#L1825-L1826
Thank you @chouby and @codestylist for your help.
Appreciate it 🙂