Allow nav depth override
This commit is contained in:
@@ -80,7 +80,7 @@ function roots_nav_menu_args($args = '') {
|
|||||||
$roots_nav_menu_args['items_wrap'] = '<ul class="%2$s">%3$s</ul>';
|
$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;
|
$roots_nav_menu_args['depth'] = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user