Created
August 27, 2017 14:04
-
-
Save braddalton/05f7765fd78c86758a2fcb3f7e10fa01 to your computer and use it in GitHub Desktop.
Add Genesis Nav Menu https://wpsites.net/web-design/adding-additional-nav-menus-in-genesis/
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
// Add support for footer menu. | |
add_theme_support( 'genesis-menus', array( 'footer' => __( 'Footer Menu', 'boss-pro' ), 'primary' => __( 'Header Menu', 'boss-pro' ) ) ); | |
// Hook menu in footer. | |
add_action( 'genesis_footer', 'boss_pro_footer_menu' ); | |
function boss_pro_footer_menu() { | |
genesis_nav_menu( array( | |
'theme_location' => 'footer', | |
'container' => false, | |
'depth' => 1, | |
'fallback_cb' => false, | |
'menu_class' => 'genesis-nav-menu', | |
) ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment