Opened 13 years ago
Closed 13 years ago
#19768 closed enhancement (wontfix)
CSS specificity help for deep nested wp_nav_menu() output
Reported by: | tw2113 | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.3.1 |
Component: | Menus | Keywords: | |
Focuses: | Cc: |
Description
I have a project that has a menu with three children deep menu items. I'm trying to style the grandchildren menu items to only appear on hover, but it's hard to target that ul because it has the same basic "sub-menu" class and no unique ID to help with css specificity. It'd be lovely if some unique identifiers could be added to the output.
Change History (2)
Note: See
TracTickets for help on using
tickets.
Additional identifiers aren't really necessary. Just take a look at the styling of the menu in Twentyeleven. It uses
ul ul ul
to target specific levels. You could also doul > li > ul > li
etc.