Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #270242

    Hi , I just need one page of my site to be in Hebrew, how do i do that,

    Thanks in advance,:)

    #270284

    Hi hadas!

    Try adding this to the functions.php (theme):

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

    Change 22 by the ID of Page.

    Cheers!
    Josue

    #270331

    Thanks, this is not helping me :(
    I get this error massage
    Parse error: syntax error, unexpected ‘&’ in………..wp-content/themes/enfold/functions.php on line 459

    did change the page!

    gr.Hadas

    #270346

    Hi!

    Can you paste line 459?

    Best regards,
    Josue

    #270465

    wp_enqueue_style( ‘avia-rtl’, $template_url."/css/rtl.css", array(), ‘1’, ‘screen’ );

    #270641

    Hi!

    You need to make sure the quotes are written correctly, don’t copy it from the email.

    Cheers!
    Josue

    #270677

    Sorry for my great stupidity, what must go in in place of quaot…. :(

    #270678

    An actual quote:

    wp_enqueue_style(  'avia-rtl',  $template_url."/css/rtl.css", array(), '1', 'screen' );
    
    #270756
    This reply has been marked as private.
    #270759

    Hi,

    Can you create an administrator account and post it here as a private reply?

    Regards,
    Josue

    #270777
    This reply has been marked as private.
    #270780
    This reply has been marked as private.
    #270844
    This reply has been marked as private.
    #270851

    You are welcome, glad we could help :)

    Regards,
    Josue

Viewing 14 posts - 1 through 14 (of 14 total)
  • The topic ‘rtl language’ is closed to new replies.