Below is the code to add a tertiary or footer menu to any Genesis child theme.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//* Footer Menu | |
function prefix_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 submenus support | |
); | |
wp_nav_menu($args); | |
} | |
add_theme_support('genesis-menus', array( | |
'primary' => 'Primary Navigation Menu', | |
'secondary' => 'Secondary Navigation Menu', | |
'tertiary' => 'Footer Navigation Menu' | |
)); | |
add_action('genesis_before_footer', 'prefix_footer_menu'); |