Themeforest Theme to RTL Hebrew

When we buy themes from Themeforest or other website and we want to use it in our Hebrew Website, we need to follow some steps to convert the design to RTL (right to left). It is possible to convert to RTL hebrew any theme.

In few words, the text align and position of the objects in our theme are defined in the file “style.css” that you can find in the root folder of any theme, For example: “/wp-content/themes/mytheme/style.css”.

If we want to avoid this process, we may look for themes already RTL compatible. Most of those themes are including a second style file that is called “rtl.css”. When the language of the page is RTL, the theme will load automatically the rtl css file.

Steps to convert a theme to RTL:

  1. Make sure that the html tag of your website includes these parameters: 
    lang=”he” and dir=”rtl”.
    For example: <html dir=”rtl” lang=”he”>
  2. Make a full backup of your theme.
  3.  Open with your text editor the file “style.css” that you can find in your theme folder.
  4. Make a search and replace all with this criteria:
    “left” to “left-bak”
  5. Make a search and replace all with this criteria:
    “right” to “left”
  6. Make a search and replace all with this criteria:
  7. “left-bak” to “right”
  8. Save the file and upload to your website.
  9. Press CTRL+F5 to refresh cache or open your website with Chrome incognito.

After following the previous mini tutorial you will be able to make your Themesforest theme Hebrew RTL.

You may find some elements that are not looking good. In this case you need to adjust specifically those elements via CSS and other techniques.

GET WORDPRESS HELP

Complete the following form and we will get in contact with you asap.