Mobile Menu

edited November 2015 in Theme support
Hi, I would like to know is there any way to show a different menu for mobile devices.

I tried creating the second menu and using this code on my header.php in my child theme, but it breaks the layout
if ( wp_is_mobile() ) {
wp_nav_menu( array( 'menu' => 'mobile-menu' ) );
} else {
wp_nav_menu( array( 'menu' => 'desktop-menu' ) );
}

Thanks

Comments

Sign In or Register to comment.