In wordpress, within the header.php file of the theme, there's the following line:

<html xmlns="" <?php language_attributes(); ?>>

Automatically, it(language_attributes) returns dir=ltr, and each online guide i just read attempted to exhibit a method to hange the css file.

it isn't enough and never semantic. i have to alter the html itself to rtl. how will it be achieved? it is possible to configurations file?

The easiest method to edit your default language is thru the wordpress-config.php file around the root directory.

This situation ought to be for The spanish language of The country define ('WPLANG', 'es_ES')

That one towards the USA British define ('WPLANG', 'en_US')

You've all of the possible combinations only at that page:


Have a look in the following two links. You have to ensure each of your theme and WordPress are setup for RTL.

You are able to control the written text direction through the language files. Should you download the Arabic(an RTL langauge) Wordpress for instance. You will find this value is occur the wp-contentlanguagesar.php as:

$text_direction = 'rtl';

And also to enable have to set the WPLANG variable inside your wordpress-config towards the RTL language such as this:

define ('WPLANG', 'ar');

Your language_characteristics() will output the dir='rtl' you would like.