[wp-trac] [WordPress Trac] #33703: Menu Class: current_sub_item

WordPress Trac noreply at wordpress.org
Thu Sep 3 15:26:51 UTC 2015


#33703: Menu Class: current_sub_item
-------------------------+------------------------------
 Reporter:  atomicjack   |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Menus        |     Version:  trunk
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:  ui
-------------------------+------------------------------

Comment (by atomicjack):

 Replying to [comment:1 swissspidy]:
 > Can you give an example?
 >
 > Quite a lot is possible with the current CSS classes. For example, the
 currently selected menu item has the class `current.`, while its parent
 has a class like `wp-has-current-submenu wp-menu-open menu-top`

 So, as you mentioned, we're able to select the parent item, and the
 'current' item, however, I would like to *only* be able to select the
 'current' if it is a sub-item (i.e has a parent). From what I'm seeing
 currently, there are no CSS classes to do this at the moment.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33703#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list