diff --git a/inc/cleanup.php b/inc/cleanup.php index 00a2e6c..5c4140d 100644 --- a/inc/cleanup.php +++ b/inc/cleanup.php @@ -439,7 +439,15 @@ add_filter('wp_nav_menu', 'roots_wp_nav_menu'); */ class Roots_Nav_Walker extends Walker_Nav_Menu { function check_current($classes) { - return preg_match('/(current[-_])/', $classes); + return preg_match('/(current[-_])|active|dropdown/', $classes); + } + + function start_lvl(&$output, $depth) { + if (current_theme_supports('bootstrap-top-navbar')) { + $output .= "\n