[wp-trac] [WordPress Trac] #16062: Add menu-item-ancestor class to menu items that have descendants

WordPress Trac wp-trac at lists.automattic.com
Sun Jan 2 06:38:36 UTC 2011


#16062: Add menu-item-ancestor class to menu items that have descendants
-------------------------+---------------------------------------
 Reporter:  valentinas   |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Menus        |    Version:
 Severity:  normal       |   Keywords:  menu, ancestor, css class
-------------------------+---------------------------------------
 As a themes and plugins developer i regularly need to add different
 styling to menu items that have descendants (for example an arrow or
 something similar that would indicate that there are submenu items). I
 have created a plugin for that (http://wordpress.org/extend/plugins/menu-
 item-ancestor/), and though it's not very popular, but i honestly believe
 that this should be a core feature.
 Example: http://community.mis.temple.edu/ (taken from wp showcase). See
 how menu items that have submenu items have arrow? So far there's no way
 to do something like this with CSS in WP. You need to use either plugin or
 JS.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16062>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list