Opened 3 years ago
Closed 2 years ago
#15282 closed enhancement (invalid)
wp_nav_menu now displays menu depth
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Menus | Version: | |
| Severity: | normal | Keywords: | reporter-feedback |
| Cc: |
Description
Adds sub-menu-depth-1 and menu-item-depth-2 classes to the ul and li classes when displaying wp_nav_menus.
This is useful for fanciful jquery manipulation of the menu.
Attachments (1)
Change History (7)
edward mindreantre
— 3 years ago
comment:3
edward mindreantre
— 3 years ago
As far as I know, saying ul ul in the css will target ALL under-ul tags of the first ul.
I know of no css selector that selects the first or second depth
comment:5
edward mindreantre
— 3 years ago
Can't reproduce the way you say.
ul > li
nails all the lis under the ul.
Note: See
TracTickets for help on using
tickets.
I don't see why this is needed, at least based on the use case.
Depth can be targeted with li, li li, etc. And even better via jQuery.