Solved

How do I enable RTL in a wordpress blog

Posted on 2010-11-25
6
1,353 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
  • 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 8

Expert Comment

by:Sam Cohen
ID: 34221007
0
 
LVL 8

Accepted Solution

by:
Sam Cohen earned 500 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Centering a nested div 16 59
Kill default webkit margin!  Please! 6 23
Error in script 11 48
CSS z-index issue 3 22
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
This article will shed light on the latest trends when it comes to your resume building needs. For far too long, the traditional CV format has monopolized the recruitment market.
This video teaches users how to migrate an existing Wordpress website to a new domain.
The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…

862 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now