Current submenu open by default
TroubleShooter
Symptom
When visiting a page, the submenu of the current menu item opens automatically without it being triggered by the user.
Symptoms
- There are no more specific symptoms for "Current submenu open by default"
Potential Diagnosis
- Residual styling from the theme is affecting the menu display
If your theme’s menu styles are based on a hard-coded element wrapping the menu, those styles will still apply after replacing the menu markup, and will conflict and negatively impact the style and functionality of the menu.
- Theme replaces current menu item classes with ‘active’ class
Some theme strip out core menu classes like the current-menu-item classes and replace them with their own ‘active’ class. This forces the menu open on page load.