Created
February 19, 2014 22:26
-
-
Save wpspeak/9102978 to your computer and use it in GitHub Desktop.
Add Footer Menu in Genesis Framework (HTML5)
This file contains hidden or 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 | |
//* 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