It worked for me like this: I assume that you are using wp-bootstrap-navwalker
Open wp-bootstrap-navwalker.php with your editor and find the line ok. 83
if ( $args->has_children && $depth === 0 ) {
$atts['href'] = '#';
$atts['data-toggle'] = 'dropdown';
$atts['class'] = 'dropdown-toggle';
} else {
$atts['href'] = ! empty( $item->url ) ? $item->url : '';
}
Change this piece of code to:
if ( $args->has_children && $depth === 0 ) {
$atts['href'] = ! empty( $item->url ) ? $item->url : '';
$atts['class'] = 'dropdown-toggle';
} else {
$atts['href'] = ! empty( $item->url ) ? $item->url : '';
}
: $att ['href'], $atts ['data-toggle'] , .
.css , WordPress .
.dropdown:hover .dropdown-menu {
display: block;
}
:
.
jQuery .