Title: Adding second menu above header
Last modified: September 1, 2016

---

# Adding second menu above header

 *  [Earl_D](https://wordpress.org/support/users/earl_d/)
 * (@earl_d)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/adding-second-menu-above-header/)
 * I have followed the instructions found here [https://codex.wordpress.org/Navigation_Menus](https://codex.wordpress.org/Navigation_Menus)
   to create a second menu in twenty twelve using the following code in the functions.
   php
 *     ```
       function register_my_menus() {
         register_nav_menus(
           array(
             'primary' => __( 'Primary Menu' ),
             'top' => __( 'Top Menu' )
           )
         );
       }
       add_action( 'init', 'register_my_menus' );
       ```
   
 * However I can’t get it to display. I am placing WP nav_menu in the header.php
   above the masthead with this code.
 * `<?php wp_nav_menu( array( 'theme_location' => 'top', 'menu_class' => 'nav-menu'));?
   >`
    I am running WP 4.53 Any help would be appreciated. Thanks

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

 *  [ashiquzzaman](https://wordpress.org/support/users/ashiquzzaman/)
 * (@ashiquzzaman)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/adding-second-menu-above-header/#post-7536795)
 * This is the standard format,try to replicate it
 *     ```
       <?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_id' => 'primary-menu' ) ); ?>
       ```
   
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/adding-second-menu-above-header/#post-7536796)
 * **[@earl_d](https://wordpress.org/support/users/earl_d/)**: Do not edit the theme
   itself. First [create a child theme for your changes](https://codex.wordpress.org/Child_Themes).
 * **[@ashiquzzaman](https://wordpress.org/support/users/ashiquzzaman/)**: Thank
   you contributing to the forums but please do not encourage people to edit theme
   files directly. At best, they will lose all of their changes when they update
   the theme. At worst, they could bring their site down. They should be recommended
   to create a [child theme](http://codex.wordpress.org/Child_Themes) or use a [custom CSS plugin](http://wordpress.org/extend/plugins/search.php?q=custom+css)
   for their changes, if appropriate.
 *  [ashiquzzaman](https://wordpress.org/support/users/ashiquzzaman/)
 * (@ashiquzzaman)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/adding-second-menu-above-header/#post-7536797)
 * [@esmi](https://wordpress.org/support/users/esmi/) Thanks for the reminder.
    
   [@weblizar_support](https://wordpress.org/support/users/weblizar_support/) Always
   use child themes for theme modification. Follow the link esmi posted.
 *  Thread Starter [Earl_D](https://wordpress.org/support/users/earl_d/)
 * (@earl_d)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/adding-second-menu-above-header/#post-7536800)
 * Thanks for the response guys. I am working with a child theme. Sorry did not 
   mention that before. Also using the custom ccs edit that comes with jetpack to
   edit css.
 * I got the menu working but I cannot get a horizontal secondary menu without screwing
   up the primary menu so all I have ended up with is this
 * [https://drive.google.com/open?id=0BwL9twPXsX5VWHZaZ0RUMGpHYU0](https://drive.google.com/open?id=0BwL9twPXsX5VWHZaZ0RUMGpHYU0)
 * When I want some thing like this
 * [https://drive.google.com/open?id=0BwL9twPXsX5VWkZzUTBJZUhSTW8](https://drive.google.com/open?id=0BwL9twPXsX5VWkZzUTBJZUhSTW8)
 * Or this
 * [https://drive.google.com/open?id=0BwL9twPXsX5VVWxDc2llRDFBNkk](https://drive.google.com/open?id=0BwL9twPXsX5VVWxDc2llRDFBNkk)
 * Any suggestions for the css styling to get a horizontal secondary menu. I have
   tried to copy the css from the style sheet and add to styles for the secondary
   menu but that has not worked as I said. So any help would be appreciated.
 * Thanks again
 *  [ashiquzzaman](https://wordpress.org/support/users/ashiquzzaman/)
 * (@ashiquzzaman)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/adding-second-menu-above-header/#post-7536801)
 * I’d suggest you to use social sharing/icon plugins
 *  Thread Starter [Earl_D](https://wordpress.org/support/users/earl_d/)
 * (@earl_d)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/adding-second-menu-above-header/#post-7536816)
 * @ashiquzzman I do t think you understand what I am trying to do. Not trying to
   do social share just create a secondary navigation menu.
 *  [kellyvb2](https://wordpress.org/support/users/kellyvb2/)
 * (@kellyvb2)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/adding-second-menu-above-header/#post-8814619)
 * [@earl_d](https://wordpress.org/support/users/earl_d/) were you ever able to 
   figure this out? I’ve been trying and trying as well and can’t get anything to
   work!
 *  Thread Starter [Earl_D](https://wordpress.org/support/users/earl_d/)
 * (@earl_d)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/adding-second-menu-above-header/#post-8815005)
 * No never did ended up abandoning the effort

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

The topic ‘Adding second menu above header’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/twentytwelve/4.8/screenshot.png)
 * Twenty Twelve
 * [Support Threads](https://wordpress.org/support/theme/twentytwelve/)
 * [Active Topics](https://wordpress.org/support/theme/twentytwelve/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/twentytwelve/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/twentytwelve/reviews/)

## Tags

 * [secondary menu](https://wordpress.org/support/topic-tag/secondary-menu/)

 * 8 replies
 * 4 participants
 * Last reply from: [Earl_D](https://wordpress.org/support/users/earl_d/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/adding-second-menu-above-header/#post-8815005)
 * Status: not resolved