[wp-trac] [WordPress Trac] #14687: Add "collapsible" class to menu items that have children
WordPress Trac
wp-trac at lists.automattic.com
Tue Aug 24 21:50:26 UTC 2010
#14687: Add "collapsible" class to menu items that have children
-----------------------------+----------------------------------------------
Reporter: digitalnature | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Menus | Version: 3.0.1
Severity: normal | Keywords:
-----------------------------+----------------------------------------------
Items from custom menus in WP 3 have classes like:
{{{
menu-item
menu-item-type-TYPE
menu-item-ID
}}}
and if the current menu item is active, also:
{{{
current-menu-item
}}}
or
{{{
current-menu-ancestor
}}}
It would useful for theme developers if you also added another class on
menu items that have children, like "collapsible", or "menu-with-children"
:)
this will allow designers to add things like arrows in menus easier,
without having to resort to javascript hacks to check if the list element
has children...
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14687>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list