[wp-trac] [WordPress Trac] #36012: Add .current-ancestor class to any relative menu item ancestor
WordPress Trac
noreply at wordpress.org
Mon Feb 29 16:52:24 UTC 2016
#36012: Add .current-ancestor class to any relative menu item ancestor
-------------------------------------+-----------------------------
Reporter: vovkasolovev | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Menus | Version: 4.4.2
Severity: normal | Keywords:
Focuses: accessibility, template |
-------------------------------------+-----------------------------
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).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36012>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list