Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I dont want to have dropdown (select - options) in my wordpress menu, even in mobile or lower width devices. I know I can use css to hide it, but I want to remove it at all. I googled for an hour and I found that I should use a custom walker on Roots!!!! but I dont know whats that and how. please help me, I am a newby.

share|improve this question
    
Which Theme do you use? –  kuchenundkakao Jul 20 at 8:17
    
meadowhill - wordpress.org/themes/meadowhill –  biji buji Jul 20 at 13:01

1 Answer 1

wp_nav_menu( array( 'menu_id'=>'nav', 'theme_location'=>'header-menu' , 'depth' => 1) );

you can use depth parameter for this.. Click here!

More Info: child theme

Create child theme and copy code from header.php of parent theme then replace the code

 wp_nav_menu( array( 'menu_id'=>'nav', 'theme_location'=>'header-menu' ) );

with the above code.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.