WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 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)

comment:1 @tw21134 years ago

  • Cc michael.d.beckwith@… added

comment:2 @scribu4 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.