Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #378302

    Hi, I have an English site and I would like to have one page in Right To Left language.
    The problem is that all signs like ‘.,?’ that comes in the end of a line jumps to the front of the line and English text that comes in a beginning of a line jumps to the end.
    is there a way to fix it in a single page?
    regards
    Cohen

    #378868

    Hey coheno!

    Please try adding following code to Functions.php file in Appearance > Editor

    add_action('wp_enqueue_scripts', 'custom_rtl_include');
    function custom_rtl_include() {
    	$template_url = get_template_directory_uri();
    
    	if(is_page( 59 )){
    		wp_enqueue_style(  'avia-rtl',  $template_url."/css/rtl.css", array(), '1', 'screen' );
    	}
    }

    You can right click on Chrome or Firefox to inspect elements to find page ID’s http://i.imgur.com/HyPTCRg.jpg

    Cheers!
    Yigit

    #379202

    works like a charm! thanks a lot!!!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘RTL language in a single page’ is closed to new replies.