Make WordPress Core

Opened 15 years ago

Closed 15 years ago

#19768 closed enhancement (wontfix)

CSS specificity help for deep nested wp_nav_menu() output

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

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)

#1 @tw2113
15 years ago

  • Cc michael.d.beckwith@… added

#2 @scribu
15 years ago

  • Milestone Awaiting Review
  • Resolutionwontfix
  • Status newclosed
  • Type feature requestenhancement

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.