I have a wordpress theme containing style.css & rtl.css, beside other theme files.
I want to change the theme to Right to Left for Arabic. What should I do? Use @import in style.css? Or replacing the text in style.css?
Leave a Reply
You must be logged in to post a comment.
The WordPress support has step by step instructions on how to make the wordpress theme RTL:
RTL Language Support
There’s also a plugin that shows how the theme will look like in RTL:
http://wordpress.org/extend/plugins/rtl-tester/
In your
header.php
file you’ll have a line similar to:Replace it with:
You’re replacing the default stylesheet with the right-to-left one.
To active the Right to Left (RTL) in wordpress you should define the language to Arabic first by edit the line in wp-config.php
just add ar between the ” to be ‘ar’
then, go to http://ar.wordpress.org and download the package, extract/unzip and upload the folder
/wp-content/languages to your wordpress /wp-content
refresh your blog and it should changed automatically to arabic
please note that the language file must match the WPLANG name, in this case WPLANG set to ar so the .po file must be ar.po.
Navigate to Settings => General in your WordPress dashboard and select the preferred âSite languageâ â donât forget to hit the âSave Changesâ button. WordPress detects whether your chosen language is a RTL language and when your WordPress theme supports RTL, the rtl.css stylesheet is loaded automatically and your website will be displayed in RTL. Thatâs it.
for more information visit this page: How to enable RTL for your WordPress website?