Skip to content

Instantly share code, notes, and snippets.

@wpspeak
Created February 19, 2014 22:26
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wpspeak/9102978 to your computer and use it in GitHub Desktop.
Save wpspeak/9102978 to your computer and use it in GitHub Desktop.
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