Possible? register_nav_menus wthin a function() in functions.php ?
-
Dear out there… ??
Looks like register_nav_menus isn’t working within a function i wrote to dynamically create dynamic Bootstrapmenus on the theme.
function navbar($scrolling, $colorclass, $menuname) { register_nav_menus( array( $menuname => $menuname) ); ...
Is there a proper way to register menu positions via function() in functions.php?
I noticed that it is necessary to have a register_nav_menus outside the function() to display the Menus Item in BAckend too…
Would be great to get an answer, just want to create some dynamic menu-functionality.
Thank you!
Chris
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Possible? register_nav_menus wthin a function() in functions.php ?’ is closed to new replies.