Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Add Footer Menu in Genesis Framework (HTML5)
<?php
//* Register Footer Menu in Genesis Framework (HTML5)
function afn_add_footer_menu () {
echo '<nav class="nav-footer" role="navigation" itemscope itemtype="http://schema.org/SiteNavigationElement">';
wp_nav_menu( array( 'sort_column' => 'menu_order', 'container_id' => 'nav-footer' , 'menu_class' => 'menu genesis-nav-menu menu-footer', 'theme_location' => 'tertiary', 'depth' => '1' ) );
echo '</nav>';
}
add_action('genesis_before_footer', 'afn_add_footer_menu');
//* Add support for footer menu
add_theme_support ( 'genesis-menus' , array ( 'primary' => 'Primary Navigation Menu' , 'secondary' => 'Secondary Navigation Menu' ,'nav-footer' => 'Footer Navigation Menu' ) );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment