Nav.php conditional for sidebar nav?

Hi All,

I’d like to create a sidebar nav, and use a different nav.php that doesn’t have bootstrap styling, just plain vanilla. Does anyone know how I can create a conditional for that?

For instance… I’m trying to use this plugin:

and it’s picking up all the styling from my top nav.

Thanks in advance for any assistance.

Dayan

try adding adding the menu as a widget, you can conditionally add it on what ever pages you want through lib/config.php. You can find more information about how to do this by looking through the forum.

Check templates/header-top-navbar.php to see how Roots includes the navbar in a template by default:

wp_nav_menu(array('theme_location' => 'primary_navigation', 'menu_class' => 'nav navbar-nav'));

So create your new navbar and when you want to insert it you can use wp_nav_menu() as in the above example, but change the menu_class value to a class that does not have any Bootstrap CSS declarations, something like nav-custom.