Solved

How do I enable RTL in a wordpress blog

Posted on 2010-11-25
6
1,365 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
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 
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

Industry Leaders: 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

Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The purpose of this video is to demonstrate how to exclude a particular blog category from the main blog page. This is can be used when a category already has its own tab, or you simply want certain types of posts not to show up on the main blog. …
The purpose of this video is to demonstrate how to integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…

707 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