Which file to add new menu code to?
Hi,
I'm trying to add another menu bar to my site since the default NepalBuzz theme only supports 2 menu locations.
I added this code snippet to my functions.php and it worked great:
function register_my_menu() {
register_nav_menu('new-menu',__( 'New Menu' ));
}
add_action( 'init', 'register_my_menu' );
Now the instructions say to add this code to the header.php page to place the menu where I want it:
wp_nav_menu( array( 'theme_location' => 'new-menu' ) ); ?>
However, I can't get the menu bar to show up how I'd like. I want the new menu bar to be ABOVE the main sticky menu at the very top of my site. I tried adding the code snippet to the bottom of the header.php page, and it showed up at the top of the main container of my site. I tried adding it at various other points in the header.php file and it just caused errors.
I know there's another file in the NepalBuzz directory called menus.php. Is this where I should be adding this code snippet to place the menu where I want it? If so, where?
Sorry, I am not well-versed in PHP. Thank you for any help!