[resolved] showing the site LTR instead RTL (5 posts)

  1. dadamsky
    Posted 3 years ago #

    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)

  2. shinjing
    Posted 3 years ago #

    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">

  3. dadamsky
    Posted 3 years ago #

    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">?

  4. shinjing
    Posted 3 years ago #

    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)

  5. dadamsky
    Posted 3 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.