Adding a menu location is pretty easy:
1) Register the new Nav Menu, using the theme_location
argument, via register_nav_menus()
in “functions.php”.
2) Call wp_nav_menu()
, using the same theme_location
argument, in the appropriate Theme template file.
For the SmartOne Theme:
1) Look for this line in “functions.php”:
// This theme uses wp_nav_menu() in one location.
register_nav_menus( array(
'primary' => __( 'Primary Navigation', 'smartone' ),
) );
And change it to this:
// This theme uses wp_nav_menu() in one location.
register_nav_menus( array(
'primary' => __( 'Primary Navigation', 'smartone' ),
'secondary' => __( 'Secondary Navigation', 'smartone' )
) );
(Your new theme_location
is secondary
.)
2) Wherever you want this second menu to appear, add the following (assuming you want the same styling as the “primary” menu):
<?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'secondary', 'link_before' => '<span class="item-left"></span><span class="icon">' , 'link_after' => '</span><span class="item-right"></span>' ) ); ?>