[wp-trac] [WordPress Trac] #23834: Twenty Thirteen: Visual Indicator for Drop Down Menus

WordPress Trac noreply at wordpress.org
Thu Mar 21 04:07:43 UTC 2013


#23834: Twenty Thirteen: Visual Indicator for Drop Down Menus
-----------------------------+-------------------------
 Reporter:  downstairsdev    |       Type:  enhancement
   Status:  new              |   Priority:  normal
Milestone:  Awaiting Review  |  Component:  General
  Version:                   |   Severity:  normal
 Keywords:                   |
-----------------------------+-------------------------
 It's helpful to have a visual indicator when a top level menu item
 contains a hidden drop down menu.

 This patch adds a filter to wp_nav_menu_objects in order to add the class
 "has-children" to top level menu items that contain children.  This allows
 us to style it with psuedo element, similar to how the menu-toggle is
 styled for smaller screens.

 The filter I used was posted by @chipbennet on the WordPress Theme
 Reviewers List. The same functionality could also be achieved by a Custom
 Nav Walker (see http://wptheming.com/2013/03/drop-down-menu-indicator/),
 but Chip's solution seemed more straightforward.

 Neither method works unless a menu has actually been set.

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


More information about the wp-trac mailing list