[wp-trac] [WordPress Trac] #36012: Add .current-ancestor class to any relative menu item ancestor

WordPress Trac noreply at wordpress.org
Sat Apr 27 18:46:55 UTC 2019

#36012: Add .current-ancestor class to any relative menu item ancestor
 Reporter:  vovkasolovev             |       Owner:  SergeyBiryukov
     Type:  enhancement              |      Status:  reopened
 Priority:  normal                   |   Milestone:  Future Release
Component:  Menus                    |     Version:  4.4.2
 Severity:  normal                   |  Resolution:
 Keywords:  needs-unit-tests has-    |     Focuses:  accessibility,
  patch                              |  template

Comment (by vovkasolovev):

 Replying to [comment:12 Mista-Flo]:
 > Yeah sure it makes sense but you already have the general class
 "current-menu-ancestor", so I guess it's what you want.

 Sorry, that is what I asked for. Right now there is no "current-menu-
 ancestor" (or "current-ancestor" as I named it) for CPT and archives. They
 have only type-related classes like "current-''post''-ancestor".

Ticket URL: <https://core.trac.wordpress.org/ticket/36012#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list