WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. dadamsky
    Member
    Posted 1 year 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
    Member
    Posted 1 year ago #

    Hi dadamsky,

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

    '<html>'

    you can simply edit that code become:

    <html dir="rtl">

  3. dadamsky
    Member
    Posted 1 year ago #

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

    if ( !isset($wp_did_header) ) {

    $wp_did_header = true;

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

    wp();

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

    }
    where to put <html dir="rtl">?

  4. shinjing
    Member
    Posted 1 year 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
    Member
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.