Title: Remove page dropdowns
Last modified: August 20, 2016

---

# Remove page dropdowns

 *  Resolved [TopHATTwaffle](https://wordpress.org/support/users/tophattwaffle/)
 * (@tophattwaffle)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/remove-page-dropdowns/)
 * Hey everyone, I’ve done my fair share of digging before posting here. this is
   a last resort. I’ve done this with other themes on older version of WordPress
   but I cannot get it right on this theme, with this wordpress.
 * What I want to do it remove the list of children pages when you hover on a page
   on the main nav bar. I’m using the EvoLve theme, and this is the code where the
   site pulls the menu from.
 *     ```
       <!--BEGIN .container-menu-->
         <div class="container nacked-menu" style="margin:0 auto;padding-bottom:10px;position:relative;z-index:99;">
   
            <?php if ($options['evl_main_menu'] == "1") { ?>
           <br /><br />
   
          <?php } else { ?>
   
          <div class="menu-header">
   
           <?php if ( has_nav_menu( 'primary-menu' ) ) { ?>
   
            <?php wp_nav_menu( array( 'menu_class' => 'nav', 'theme_location' => 'primary-menu' ) ); ?>
   
             <?php } else { ?>
   
       	        <?php wp_page_menu( 'show_home=0' ); ?>
   
                 <?php } ?> 
   
                 </div> 
   
              <?php } ?>
       ```
   
 * Any help would be wonderful!

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [vtxyzzy](https://wordpress.org/support/users/vtxyzzy/)
 * (@vtxyzzy)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/remove-page-dropdowns/#post-2763909)
 * If you are using a WP Menu as created under Admin->Appearance->Menus, I think
   what you want is to use the ‘depth’ parameter described here:
 * [http://codex.wordpress.org/Function_Reference/wp_nav_menu](http://codex.wordpress.org/Function_Reference/wp_nav_menu)
 *  Thread Starter [TopHATTwaffle](https://wordpress.org/support/users/tophattwaffle/)
 * (@tophattwaffle)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/remove-page-dropdowns/#post-2763910)
 * Solved the issue, just had to use:
    `<?php wp_page_menu( 'show_home=1&depth=1&
   sort_column=menu_order&include=3664,3666,3670,3596,3598,3603,3606,61,63,3681,3685');?
   >`
 *  [vtxyzzy](https://wordpress.org/support/users/vtxyzzy/)
 * (@vtxyzzy)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/remove-page-dropdowns/#post-2763912)
 * If your problem has been solved, please use the dropdown on the right to mark
   this topic ‘Resolved’ so that anyone else with this question can see that there
   is a solution.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Remove page dropdowns’ is closed to new replies.

## Tags

 * [dropdown](https://wordpress.org/support/topic-tag/dropdown/)
 * [pages](https://wordpress.org/support/topic-tag/pages/)
 * [parent](https://wordpress.org/support/topic-tag/parent/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [vtxyzzy](https://wordpress.org/support/users/vtxyzzy/)
 * Last activity: [13 years, 12 months ago](https://wordpress.org/support/topic/remove-page-dropdowns/#post-2763912)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
