Title: Does not load rtl.css
Last modified: August 20, 2016

---

# Does not load rtl.css

 *  Resolved [slm_xd](https://wordpress.org/support/users/slm_xd/)
 * (@slm_xd)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/does-not-load-rtlcss/)
 * Hi. I hope this is not a duplicate, but I’ve been googling for the past few hours.
 * My theme didn’t have an rtl.css, so I added one after modifying it according 
   to this very useful guide: [http://codex.wordpress.org/Right-to-Left_Language_Support](http://codex.wordpress.org/Right-to-Left_Language_Support)
   
   and it shows now in the appearance->editor window
 * I used a great plugin to test it: [http://wordpress.org/extend/plugins/rtl-tester/](http://wordpress.org/extend/plugins/rtl-tester/)
   
   and it worked great. However,
 * once I enable Arabic, it’s not loaded using the rtl.css. Are there any other 
   settings that I need to change?
 * 1. here are my settings: [http://i.imgur.com/EY9xXlk.png](http://i.imgur.com/EY9xXlk.png)
   
   2. No static page 3. polylang here: [http://i.imgur.com/VNftczv.png](http://i.imgur.com/VNftczv.png)
 * here’s the website normally: [http://blog.al-aqel.com](http://blog.al-aqel.com)
   
   and this one is supposed to display rtl.css: [http://blog.al-aqel.com/ar/](http://blog.al-aqel.com/ar/)
 * by the way, I have jetpack enabled. don’t know if it does anything but I saw 
   something about css there.
 * [http://wordpress.org/extend/plugins/polylang/](http://wordpress.org/extend/plugins/polylang/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [Chouby](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/does-not-load-rtlcss/#post-3589325)
 * I tested the Ascetica theme together with Polylang on my local test site and 
   the theme is perfectly compatible with rtl. It correctly outputs:
 *     ```
       <html lang="ar" dir="rtl">
       ```
   
 * However on your site, the code source displays:
 *     ```
       <html lang="ar" prefix="og: http://ogp.me/ns#">
       ```
   
 * without the text direction. So I expect that one of your plugin interfers. De-
   activate them all and then re-activate them one by one to check that.
 *  Thread Starter [slm_xd](https://wordpress.org/support/users/slm_xd/)
 * (@slm_xd)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/does-not-load-rtlcss/#post-3589326)
 * Thanks for the quick response. Actually, just today I did a fresh install of 
   this theme in a new DB and it worked great.
 * Then I tried it again with my testing copy of the same site:
    [http://blog.al-aqel.com/le_testing/ar/](http://blog.al-aqel.com/le_testing/ar/)
   But it didn’t work. So I disable ALL plugin except Polylang. It still didn’t 
   work. I made sure that the settings are exactly the same as the fresh site that
   I made. It’s weird.
 * So now we know for sure it’s me not you 🙂 … But I’m still investigating. However,
   if there is anything even dangerous you want me to try, I would do it with the
   testing site.
 * Else, I’m thinking of taking a backup of the posts and recovering them into a
   fresh install or something… Plan Z kind of thing.
 *  Plugin Author [Chouby](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/does-not-load-rtlcss/#post-3589334)
 * Could you male two separate tests ?
 * 1. check “The language is set from content. Posts, pages, categories and tags
   urls are not modified” in Polylang settings? Check if it is ok.
 * 2. de-activate Polylang and add:
 *     ```
       define('WPLANG', 'ar');
       ```
   
 * in `wp-config.php`. Check if it is ok.
 *  Thread Starter [slm_xd](https://wordpress.org/support/users/slm_xd/)
 * (@slm_xd)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/does-not-load-rtlcss/#post-3589361)
 * Ok!
 * 1. I tried this. It actually loaded the correct css for the frontpage (with /
   ar/ added) but the Arabic posts themselves are displaying in the English interface
   now. Kinda strange.
 * I’ll leave the blog like this for now for you to look at it and see if you can
   get something useful from the current html head. And I’ll do test #2 once you
   give me the go ahead.
 * Thanks again!
 *  Plugin Author [Chouby](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/does-not-load-rtlcss/#post-3589367)
 * OK. I expected that rtl.css would be correctly loaded, because in this case, 
   Polylang does use the option set when creating the language. With your previous
   setting, Polylang does not modify the setting chosen by WordPress.
    I propose
   two different actions. 1. You can download the latest arabic translation of WordPress(
   which should correctly set the text direction) and upload the files in /wp-content/
   languages/ [http://svn.automattic.com/wordpress-i18n/ar/tags/3.5.1/messages/](http://svn.automattic.com/wordpress-i18n/ar/tags/3.5.1/messages/)
   2. And / or you can download the development version of Polylang (1.0.3.3), as
   starting from now Polylang will always force the text direction based on the 
   option chosen for the language. [http://downloads.wordpress.org/plugin/polylang.zip](http://downloads.wordpress.org/plugin/polylang.zip)
 * > the Arabic posts themselves are displaying in the English interface now.
 * How did you setup your theme translation?
 *  Thread Starter [slm_xd](https://wordpress.org/support/users/slm_xd/)
 * (@slm_xd)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/does-not-load-rtlcss/#post-3589401)
 * Actually solution #1 fixed the problem!
 * I downloaded the .mo files and uploaded them to wp-content/languages/
    Reloaded
   the page and it’s all perfect!
 * Thank you so much, this has been an issue preventing me from publishing to my
   own people 🙂

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Does not load rtl.css’ is closed to new replies.

 * ![](https://ps.w.org/polylang/assets/icon-256x256.png?rev=3433336)
 * [Polylang](https://wordpress.org/plugins/polylang/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/polylang/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/polylang/)
 * [Active Topics](https://wordpress.org/support/plugin/polylang/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/polylang/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/polylang/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [slm_xd](https://wordpress.org/support/users/slm_xd/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/does-not-load-rtlcss/#post-3589401)
 * Status: resolved