Last active
August 29, 2015 14:02
-
-
Save Willem-Siebe/40311753fce4bfb5fd62 to your computer and use it in GitHub Desktop.
Register multiple WordPress menu's, see http://codex.wordpress.org/Function_Reference/register_nav_menus. Here I use my own function since the parent theme, Toolset Bootstrap, is not using a filter for this.
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
// Register multiple WordPress menu's, see https://gist.github.com/Willem-Siebe/40311753fce4bfb5fd62. | |
function wsis_register_nav_menus() { | |
register_nav_menus(array( | |
'support_navigation' => 'Support Navigation', | |
'shop_navigation' => 'Shop Navigation', | |
'social_navigation' => 'Social Navigation', | |
'footer_navigation' => 'Footer Navigation', | |
)); } | |
add_action('after_setup_theme', 'wsis_register_nav_menus'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment