Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #565997

    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

    #566444

    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

    #566997

    added

    #567625

    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

    #567703

    Thank you

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘RTL along with another language.’ is closed to new replies.