askdesign
11/11/2015 - 9:35 PM

How to Register an Additional Nav Menu in Genesis

Method 2 Used with Zamir site

<?php
//* METHOD 2 - https://amethystwebsitedesign.com/add-third-footer-navigation-menu-to-genesis-child-theme/
// Remove the line above when adding to functions.php
//* Add theme support for new menu
//* Add Footer Menu; Keep Primary and Secondary Menus
add_theme_support ( 'genesis-menus' , array ( 
	'primary'   => __( 'Primary Navigation Menu', 'genesis' ),
	'secondary' => __( 'Secondary Navigation Menu', 'genesis' ),
        'footer'    => __( 'Footer Navigation Menu', 'genesis' )
	) );

<?php
//* METHOD 2 - https://amethystwebsitedesign.com/add-third-footer-navigation-menu-to-genesis-child-theme/
// Remove the line above when adding to functions.php
// Add attributes to markup
// Add footer menu just above footer widget area
add_action( 'genesis_before_footer', 'amethyst_footer_menu', 9 );
function amethyst_footer_menu() {

	genesis_nav_menu( array(
		'theme_location' => 'footer',
		'container'       => 'div',
		'container_class' => 'wrap',
		'menu_class'     => 'menu genesis-nav-menu menu-footer',
		'depth'           => 1
	) );

}
//* METHOD 2 - https://amethystwebsitedesign.com/add-third-footer-navigation-menu-to-genesis-child-theme/
//* Used successfully on Zamir's site, although not needed, since we used Secondary nav conditionally instead
//* Add theme support for new menu
//* Add Member Menus; Keep Primary and Secondary Menus
add_theme_support ( 'genesis-menus' , array ( 
	'primary'   => __( 'Primary Navigation Menu', 'genesis' ),
	'secondary' => __( 'Secondary Navigation Menu', 'genesis' ),
        'Tutti'    => __( 'Tutti Navigation Menu', 'genesis' ),
        'Board'    => __( 'Board Navigation Menu', 'genesis' ),
        'Staff'    => __( 'Staff Navigation Menu', 'genesis' ),
	) );

//* METHOD 2 - https://amethystwebsitedesign.com/add-third-footer-navigation-menu-to-genesis-child-theme/
// Add attributes to markup
// Add Tutti menu just above header area
add_action( 'genesis_before_header', 'zamir_tutti_menu', 9 );
function zamir_tutti_menu() {

	genesis_nav_menu( array(
		'theme_location' => 'Tutti',
		'container'       => 'div',
		'container_class' => 'wrap',
		'menu_class'     => 'menu genesis-nav-menu menu-tutti',
		'depth'           => 1
	) );

}

// Add Board menu just above header area
add_action( 'genesis_before_header', 'zamir_board_menu', 9 );
function zamir_board_menu() {

	genesis_nav_menu( array(
		'theme_location' => 'Board',
		'container'       => 'div',
		'container_class' => 'wrap',
		'menu_class'     => 'menu genesis-nav-menu menu-board',
		'depth'           => 1
	) );

}

// Add Staff menu just above header area
add_action( 'genesis_before_header', 'zamir_staff_menu', 9 );
function zamir_staff_menu() {

	genesis_nav_menu( array(
		'theme_location' => 'Staff',
		'container'       => 'div',
		'container_class' => 'wrap',
		'menu_class'     => 'menu genesis-nav-menu menu-staff',
		'depth'           => 1
	) );

}