Merge pull request #838 from Foxaii/nav-depth

Allow nav depth override
This commit is contained in:
Ben Word
2013-08-11 19:54:35 -07:00

View File

@@ -80,7 +80,7 @@ function roots_nav_menu_args($args = '') {
$roots_nav_menu_args['items_wrap'] = '<ul class="%2$s">%3$s</ul>';
}
if (current_theme_supports('bootstrap-top-navbar')) {
if (current_theme_supports('bootstrap-top-navbar') && !$args['depth']) {
$roots_nav_menu_args['depth'] = 2;
}