Special Offer: Buy All 48 Premium WordPress Themes for Just $74.99. Learn more

How to Change Theme Text Direction From Right to Left

theme text rtl

By default text direction in our themes is Left to Right. However, if your website is written in Hebrew or Arabic text, then you probably will have to change text direction to Right to Left.

It will require a small code change. Here are all of the necessary steps:

1. Login to your WordPress Admin Panel

2. Navigate to Left Menu -> Appearance -> Editor

3. Open header.php

4. Replace:

<body <?php body_class(); ?>>

with:

<body <?php body_class(); ?> dir=”rtl”>

5. Save changes

 

 

 

About the Author

Tihomir Ivanov is a WordPress and Salesforce Commerce Cloud (SFCC) developer, founder of tishonator.com, a fan of Linux and Open Source, Minimalism (in Design and Life), Sci-fi, Fantasy, Classic and History books :)

Leave a Reply