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 […]
Function: wp_is_mobile()
2 posts
The sticky header is a cool feature we all love :). Though we might find it useful just in desktop browsers and we would like to keep the static header in mobiles. Here’s a simple snippet to add to your child-theme functions.php in order to achieve that. add_filter(‘tc_opt_tc_sticky_header’, ‘disable_sticky_in_mobiles’); function […]