if (current_theme_supports('bootstrap-top-navbar') && !$args['depth']) {
$roots_nav_menu_args['depth'] = 4;
}
// tried 0 as well as suggested in codex but to no avail :(
and for but I still can’t get the depth to more than the second level. I think I have three level like this:
You’ll want to check out the history of lib/nav.php on GitHub. We supported 3 levels when Bootstrap 2 did (I think the class was .dropdown-submenu) so most of the code needed already exists.
You’ll also want to search for Bootstrap 3 submenus to find the appropriate CSS.
If you look in nav.php - which is where you should be like @Foxaii said, you will see on lines 83-85 you can change the depth there… not sure how far that will get you…
if (current_theme_supports('bootstrap-top-navbar') && !$args['depth']) {
$roots_nav_menu_args['depth'] = 2;
}
The markup is probably there for the other dropdowns, just hidden. I recently did a nav menu with sub menus (they don’t create an extra dropdown) so I know it works.
All this said, be careful about your subnavs. They were removed from Bootstrap 3 for a reason - they’re less intuitive, and sometimes difficult to use.