?
Solved

How do I enable RTL in a wordpress blog

Posted on 2010-11-25
6
Medium Priority
?
1,383 Views
Last Modified: 2012-05-10
I have a wordpress blog with the "twenty ten" theme installed on it.

The theme is RTL enabled, thus has the RTL files (rtl.css etc).


How do I change the blog to start being RTL?

What button should I click in order to actually be RTL instead of the regular LTR?
0
Comment
Question by:xcdev
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
6 Comments
 
LVL 23

Expert Comment

by:jeremyjared74
ID: 34214414
Have you tried using the RTL CSS Generator Plug-in? Here is the link to the Wordpress Plug-in Directory for it:
http://wordpress.org/extend/plugins/rtler/changelog/
0
 

Author Comment

by:xcdev
ID: 34216855
This plugin only generates the rtl.css file from the stylesheet.css

I already have the rtl.css I just want it to kick in and start working.


I assume there is a simple button/property one should set up in order for the RTL theme (Which is definitely compatible with RTL hence having its rtl.css) to actually start working in RTL mode.


Please help
0
 
LVL 23

Expert Comment

by:jeremyjared74
ID: 34219823
I think you can copy and paste the rtl.CSS into the style.css, or link to the rtl.CSS in the header.php file.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 8

Accepted Solution

by:
Sam Cohen earned 2000 total points
ID: 34221023
to be more specific:

You can control the text direction via the language files. If you download the Arabic(an RTL langauge) Wordpress for example. You'll find this value is set in the \wp-content\languages\ar.php as:

$text_direction = 'rtl';

And to enable it..you need to set the WPLANG variable in your wp-config to the RTL language like this:

define ('WPLANG', 'ar');

Then your language_attributes() will output the dir='rtl' you want.


ref: http://stackoverflow.com/questions/3910560/wordpress-change-language-attributes-to-return-dirrtl/4087977#4087977
0
 

Author Closing Comment

by:xcdev
ID: 34223084
Great solution.


It worked.


THanks.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
This article shows the steps required to install WordPress on Azure. Web Apps, Mobile Apps, API Apps, or Functions, in Azure all these run in an App Service plan. WordPress is no exception and requires an App Service Plan and Database to install
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
The purpose of this video is to demonstrate how to set up the permalinks on a WordPress Website. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Go t…
Suggested Courses
Course of the Month9 days, 2 hours left to enroll

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question