-
AuthorPosts
-
January 21, 2015 at 8:14 am #382892
How simply change the whole site with Enfold theme to RTL mode using Quick CSS?
Reagards
Abedia- This topic was modified 9 years, 10 months ago by abedia.
January 21, 2015 at 4:39 pm #383105Hey 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,
YigitJanuary 26, 2015 at 7:44 am #385262Hi, 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
AbediaJanuary 27, 2015 at 6:00 am #385993Hey 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!
JosueJanuary 27, 2015 at 6:31 am #386002Thank 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
AbediaJanuary 27, 2015 at 7:48 am #386010Hey!
Can you post a screenshot/mockup of what would you want to achieve? a link to your site would be helpful too.
Best regards,
JosueJuly 3, 2016 at 4:24 pm #656272Hey,
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.July 5, 2016 at 12:36 pm #656988Hi,
please follow the instructions and post a screenshot as well as a link showing the elements in question.
Best regards,
Andy -
AuthorPosts
- You must be logged in to reply to this topic.