Here’s a simple snippet in order to display the vertical menu only in mobiles, keeping the regular one in desktop devices:
add_filter('tc_opt_tc_menu_style', 'tc_vertical_menu_in_mobiles'); function tc_vertical_menu_in_mobiles( $type ) { return wp_is_mobile() ? 'aside' : $type; }
Where to copy/paste this code?
Add it to your child-theme functions.php.
Everything you need to know about creating a child theme with Customizr here.
Goodbye and goodluck 🙂
6 thoughts on “How to display the Customizr(-Pro) vertical menu only in mobiles”
This one also does not work for me. Seems to me that a lot of these snippets do not work.
It didn’t work here either. I have another snippet in my child theme’s functions.php file to change the footer credits (which works fine). So I wonder if there was an incompatibility problem. I just added the snippet above in the next line. Like this:
It doesn’t work in my functions.php!
Canelo VS Khan Live Where to copy/paste this code?
used WordPress in early 2012 to help a friend to customize a theme for an on-line newspaper. I “met” Customizr for the first time in February 2014. I think that Customizr is not just a theme, but a real framework, and that if you do not let yourself be frightened by a few lines of code you can get almost anything you want using the large amount of hooks that Customizr provides. … I’m the (proud) creator of the Canelo VS Khan Live Streaming plugin.
It doesn;t work in my functions.php! My site is greeksunyachts.com
The developer team handles support for Customizr at https://wordpress.org/support/theme/customizr and for Customizr-Pro at http://presscustomizr.com/support/. Please post your query there with a link to your site.