Created
January 4, 2014 15:03
-
-
Save WebEndevSnippets/8256193 to your computer and use it in GitHub Desktop.
WordPress: Add New Menu Navigation with dynamic child category walker class
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 New Menu Navigation with dynamic child category walker class | |
add_action( 'genesis_after_header', 'webendev_subcat_navigation', 15 ); | |
function webendev_subcat_navigation() { | |
echo '<nav class="nav-primary">'; | |
wp_nav_menu( | |
array( | |
'container_class' => 'wrap', | |
'theme_location' => 'primary', | |
'menu_class' => 'menu genesis-nav-menu menu-secondary', | |
'walker' => new Submenu_Walker_Nav_Menu() | |
) | |
); | |
echo '</nav>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment