Make WordPress Core

Opened 12 years ago

Closed 12 years ago

#19768 closed enhancement (wontfix)

CSS specificity help for deep nested wp_nav_menu() output

Reported by: tw2113's profile tw2113 Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.3.1
Component: Menus Keywords:
Focuses: Cc:


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)

#1 @tw2113
12 years ago

  • Cc michael.d.beckwith@… added

#2 @scribu
12 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed
  • Type changed from feature request to enhancement

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 do ul > li > ul > li etc.

Note: See TracTickets for help on using tickets.