[wp-trac] [WordPress Trac] #19297: Add new parameters to wp_nav_menu() and customize output this function

WordPress Trac wp-trac at lists.automattic.com
Mon Nov 28 16:26:43 UTC 2011


#19297: Add new parameters to wp_nav_menu() and customize output this function
-------------------------+-------------------------
 Reporter:  egorpromo    |       Owner:
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:
Component:  Template     |     Version:  3.3
 Severity:  normal       |  Resolution:  worksforme
 Keywords:               |
-------------------------+-------------------------
Changes (by nacin):

 * status:  new => closed
 * resolution:   => worksforme
 * milestone:  Awaiting Review =>


Comment:

 These classes can be modified by plugins, so you're welcome to do this on
 your own.

 As ocean90 said, using a JS library that can do CSS-based selections (i.e.
 Sizzle/jQuery) will be plenty for JS targeting. If you want a third-level
 menu, try `ul.menu > li> ul > li > ul> li`. Or even just `ul.menu li li
 li` for anything level 3 or deeper.

 Closing as worksforme, as the current markup supports the vast majority of
 use cases, and it can be modified by a plugin.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19297#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list