Support » Fixing WordPress » showing the site LTR instead RTL

  • Resolved dadamsky


    I have created new site with RTL (Hebrew)
    Everything works fine accept that almost every time I go to my site (landing page) its show as LTR.
    After I refrash the page it cahnge to RTL and countinu with the other pages RTL as it should be.
    The same is if I go to any other page and go back to my home it looks OK (RTL)

Viewing 4 replies - 1 through 4 (of 4 total)
  • shinjing


    Hi dadamsky,

    to make your site from rtl to ltr, you can edit your header.php file and find out this code:


    you can simply edit that code become:

    <html dir=”rtl”>



    hi shinjing
    i have the file “wp-blog-header.php” in the wp directory
    thats the file in need to edit?
    this is the file:
    * Loads the WordPress environment and template.
    * @package WordPress

    if ( !isset($wp_did_header) ) {

    $wp_did_header = true;

    require_once( dirname(__FILE__) . ‘/wp-load.php’ );


    require_once( ABSPATH . WPINC . ‘/template-loader.php’ );

    where to put <html dir=”rtl”>?

    Hi Dadamsky,

    Sorry to wait, little busy here.

    Can you tell me what theme you are using?

    And is there any file like header.php or something? Because ‘wp-blog-header.php’ seems belongs to ‘single’ post content.

    The modification need to be done at header.php of the theme (main header file)

    i found the problem. my site was on Windows enviroment. when i change it to Linox it solved the problem.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘showing the site LTR instead RTL’ is closed to new replies.