Add Footer or Tertiary Menu to Genesis Child Theme
<?php
//do not add in opening php tag
/**
* Add in Footer or Tertiary Menu
*
* @package Genesis Tertiary Menu
* @author Neil Gee
* @link http://wpbeaches.com/add-footer-menu-genesis-child-theme/
* @copyright (c)2014, Neil Gee
*/
add_action( 'genesis_before_footer', 'themprefix_footer_menu' );
//Footer Menu
function themprefix_footer_menu () {
$args = array(
'theme_location' => 'tertiary',
'container' => 'nav',
'container_class' => 'footer-menu-container',
'menu_class' => 'wrap menu genesis-nav-menu menu-tertiary',
'depth' => 1, //change to 0 for submenu levels
);
wp_nav_menu( $args );
}
add_theme_support ( 'genesis-menus' , array (
'primary' => 'Primary Navigation Menu' ,
'secondary' => 'Secondary Navigation Menu' ,
'tertiary' => 'Footer Navigation Menu'
) );