Solved

How do I enable RTL in a wordpress blog

Posted on 2010-11-25
6
1,348 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
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

When writing CSS, there are a few simple rules that will make your life easier.    1. Using ‘* {box-sizing:border-box;}’. Using this will wrap all your elements in a nice little compact box-model that will give you the width you want, like so... …
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.
The purpose of this video is to demonstrate how to insert an Iframe into WordPress. 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 : Open Page or Post…
This video teaches users how to migrate an existing Wordpress website to a new domain.

760 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

18 Experts available now in Live!

Get 1:1 Help Now