If you need to add extra menu to your theme you could use this snippets. This is two steps tutorial, in the first you just need to add the code to your function.php; in the second you need to add the code of the menu in your new menu location, for example the header.
Before your start please make a full backup of your theme. Continue reading
Step 1. Function.php:
add_action( 'init', 'wpc_extra_menu' );
function wpc_extra_menu() {
register_nav_menus(
array(
'super-primary-menu' => __( 'Super Primary Menu' ),
'super-secondary-menu' => __( 'Super Secondary Menu' )
)
);
}
Step 2. Theme customization:
<?php wp_nav_menu( array('theme_location' => 'super-primary-menu' ) ); ?>
<?php wp_nav_menu( array( 'theme_location' => 'super-secondary-menu' ) ); ?>
Well done now you have 2 new menus.