Hello
I would like to know how to enable RTL support for Arabic when using 2 languages.
In my case my primary language is English, and my secondary is Arabic. I want when the language is switched to Arabic to enable RTL.
I am using WPML.
Please advise. Thanks
Hey george,
Please send us a temporary admin login so that we can have a closer look. You can post the details in the Private Content section of your reply.
Thanks,
Rikard
added
Hey!
Thank you for the info. Please add this in the functions.php file:
add_action( 'wp_enqueue_scripts', 'wp_enqueue_scripts_mod', 20 );
function wp_enqueue_scripts_mod() {
$template_url = get_template_directory_uri();
wp_dequeue_style( 'avia-rtl' );
wp_deregister_style( 'avia-rtl' );
if ( is_rtl() || 'ar' == ICL_LANGUAGE_CODE ) {
wp_enqueue_style( 'avia-rtl', $template_url."/css/rtl.css", array(), '1', 'all' );
}
}
We would like to add it but the Appearance > Editor is not accessible in the dashboard.
Best regards,
Ismael
Thank you