WordPress.org

Make WordPress Core

Opened 20 months ago

Last modified 14 months ago

#36012 assigned enhancement

Add .current-ancestor class to any relative menu item ancestor

Reported by: vovkasolovev Owned by: SergeyBiryukov
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.4.2
Component: Menus Keywords:
Focuses: accessibility, template Cc:

Description

Right now there is .current-page-ancestor and .current-post-ancestor for pages and posts and no any class for archives, category, taxonomy or custom post types ancestors added to items in nav-menu.

I think it will be usefull, for indication navigation depth purposes, to add .current-ancestor class to ANY menu item if "current page" is child/successor to anything in menu (parents, archive, category, taxonomy etc. menu items).

Change History (3)

This ticket was mentioned in Slack in #accessibility by afercia. View the logs.


14 months ago

This ticket was mentioned in Slack in #accessibility by afercia. View the logs.


14 months ago

#3 @SergeyBiryukov
14 months ago

  • Owner set to SergeyBiryukov
  • Status changed from new to assigned
  • Type changed from feature request to enhancement
Note: See TracTickets for help on using tickets.