Hi , I just need one page of my site to be in Hebrew, how do i do that,
Thanks in advance,:)
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
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
Hi!
Can you paste line 459?
Best regards,
Josue
wp_enqueue_style( ‘avia-rtl’, $template_url."/css/rtl.css", array(), ‘1’, ‘screen’ );
Hi!
You need to make sure the quotes are written correctly, don’t copy it from the email.
Cheers!
Josue
Sorry for my great stupidity, what must go in in place of quaot…. :(
An actual quote:
wp_enqueue_style( 'avia-rtl', $template_url."/css/rtl.css", array(), '1', 'screen' );
Hi,
Can you create an administrator account and post it here as a private reply?
Regards,
Josue
You are welcome, glad we could help :)
Regards,
Josue