[wp-trac] [WordPress Trac] #13273: Allow "'non-clickable" menu items

WordPress Trac noreply at wordpress.org
Wed Jun 11 00:26:29 UTC 2014

#13273: Allow "'non-clickable" menu items
 Reporter:  stgoos                   |       Owner:
     Type:  enhancement              |      Status:  new
 Priority:  normal                   |   Milestone:  Future Release
Component:  Menus                    |     Version:  3.0
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:  ui
Changes (by celloexpressions):

 * keywords:  needs-patch => has-patch needs-testing
 * focuses:   => ui
 * severity:  minor => normal
 * version:   => 3.0


 [attachment:13273.diff] implements core support and UI for "placeholder"
 nav menu items. Placeholders are similar to custom links, but without
 URLs. Accordingly, the UI is built-in to the existing "Links" section, as
 a checkbox that toggles the visibility of the URL field. The patch
 includes no-js support. Alternatively, a "Placeholders" section could be
 created, although that would be less elegant.

 On the front-end, placeholders would primarily be used as parent menu
 items, as placeholders for sub-menus in top-level menus. Generally, the
 only enhancement that themes could (or would need to) make to support this
 feature would be to apply `cursor: default` to these menu items, in place
 of the default `cursor: text` for unlinked links. This enhancement
 certainly isn't required and some themes may take advantage of this
 feature further than just tweaking the cursor. [attachment:13273.diff]
 implements the small CSS fix in all of the bundled themes, as the fix
 improves the UX somewhat for each of those themes.

Ticket URL: <https://core.trac.wordpress.org/ticket/13273#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list