(+359) 88 339 4445

Buy All 39 Premium WordPress Themes for $54.99

How to Change Theme Text Direction From Right to Left

How to Change Theme Text Direction From Right to Left

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(); ?>>


<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, a fan of Linux and Open Source, Minimalism (in Design and Life), Sci-fi, Fantasy, Classic and History books :)

2 Responses to “How to Change Theme Text Direction From Right to Left”

  1. Hi, is there any option to change text direction only on one page in my web site? I need to add one page in language which is written from right to left, but all the other pages should be written from left to right.
    I appreciate your respond and help. Thank you.

    • Hi Tuula,

      it can be done will additional check of post id (of the page or post you want to change the text direction), i.e. if your page id is 1031, you can update the above code to:


Leave a Reply