If you use bootstrap (bs) & wordpress (wp) for your website, you might use wp_bootstrap_navwalker.php to fix the navbar. But this library doest not let you make your navbar dropdown menu to show automatically on mouse hover. You need to click the menu item to show it. To fix this, do open wp_bootstrap_navwalker.php and look for below code:

replace or edit the code as below:

then edit your style.css to make the dropdown automatic show on hover:

in some case, you won’t need to add this css. You just need to change the $atts[data-toggle] to $atts['data-hover] . But I find this is not working for me.

 

Gif image by: https://codetea.com/