Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How do I enable RTL in a wordpress blog

Posted on 2010-11-25
6
Medium Priority
?
1,396 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
Plesk WordPress Toolkit

Plesk's WordPress Toolkit allows server administrators, resellers and customers to manage their WordPress instances, enabling a variety of development workflows for WordPress admins of all skill levels, from beginners to pros.

See why 2/3 of Plesk servers use it.

 
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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
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
The purpose of this video is to demonstrate how to set up an RSS Feed on a WordPress Website. This will be demonstrated using a Windows 8 PC. Feedburner will be used for this demonstration. Go to your WordPress login page. This will look like the…
The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…
Suggested Courses

604 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