Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #382892

    How simply change the whole site with Enfold theme to RTL mode using Quick CSS?

    Reagards
    Abedia

    • This topic was modified 9 years, 11 months ago by abedia.
    #383105

    Hey abedia!

    You should install WordPress in a RTL language like Hebrew or Arabic. You can also 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();
    	wp_enqueue_style(  'avia-rtl',  $template_url."/css/rtl.css", array(), '1', 'screen' );
    }

    Regards,
    Yigit

    #385262

    Hi, Thanks. this works but adds other functions which disturb the layout in parts that I don’t want.

    Without making the whole site to RTL mode, is there any Quick CSS to use for the alignment of menu and submenu items to the right?

    Regards
    Abedia

    #385993

    Hey Abedia!

    Try adding this at the very end of your theme / child theme functions.php file:

    if(!is_admin()){
    	add_action('wp_enqueue_scripts', 'avia_force_rtl');
    }
    
    function avia_force_rtl() {
    	$template_url = get_template_directory_uri();
    	wp_enqueue_style(  'avia-rtl',  $template_url."/css/rtl.css", array(), '1', 'all' );
    }
    

    Cheers!
    Josue

    #386002

    Thank you, This works too. In fact I don’t see much difference from the first solution.

    I have my menu as Custom menu as a Widget too. In the computer the custom menu will be RTL as I wanted, same as the menu on the top of the page. However, in the mobile version, the custom menu is still aligned to the left while the menu on the to of the page when you click the menu icon is aligned right as I wanted. I would like to keep the custom menu as widget. Can we make it aligned to the right as well?

    Best regards
    Abedia

    #386010

    Hey!

    Can you post a screenshot/mockup of what would you want to achieve? a link to your site would be helpful too.

    Best regards,
    Josue

    #656272

    Hey,
    I’ve tried both method described above. I don’t see any changes to the Enfold option.
    Can someone please elaborate more on how to implement RTL settings?

    BR,
    Nadav.

    #656988

    Hi,

    please follow the instructions and post a screenshot as well as a link showing the elements in question.

    Best regards,
    Andy

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.