Dropdown items have the nav-link class, but they should only have 'dropdown-item' as class.
leonidlezner opened this issue · comments
Leonid Lezner commented
Dropdown items have the nav-link class, but they should only have 'dropdown-item' as class.
$item_classes = array( 'nav-link' );
if ( $args->walker->has_children ) {
$item_classes[] = 'dropdown-toggle';
}
if ( 0 < $depth ) {
// Remove the nav-link class!!
unset($item_classes[0]);
$item_classes[] = 'dropdown-item';
}
Javier Prieto commented
Fixed! Thanks @leonidlezner