Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#13161 closed enhancement (duplicate)

Add current_item_parent-like class to the new menu framework

Reported by: rfiser Owned by: filosofo
Milestone: Priority: normal
Severity: normal Version: 3.0
Component: Menus Keywords: menu class css
Focuses: Cc:


Currently, the new menu system does not add classes like current_page_parent and current_page_ancestor to particular menu items so that it is impossible to style for example the top level item differently.

Maybe this is due to the fact that a specific page (post, category, ...) can be placed in a single menu on more positions, so that it has more top-level parents. Nonetheless, I would still like to have the "parent" classes in the menu.

If I am in the second level (or higher) in the menu structure, I need to identify the parent item and the top-level item by a class to be able to reach it by CSS.so that it is impossible to style differently the top level item

Change History (1)

#1 @duck_
6 years ago

  • Resolution set to duplicate
  • Status changed from new to closed

See #12812

Note: See TracTickets for help on using tickets.