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

WordPress Trac noreply at wordpress.org
Fri Nov 10 16:19:53 UTC 2023


#13273: Allow "'non-clickable" menu items
--------------------------+--------------------------------
 Reporter:  stgoos        |       Owner:  (none)
     Type:  enhancement   |      Status:  new
 Priority:  normal        |   Milestone:  Future Release
Component:  Menus         |     Version:  3.0
 Severity:  normal        |  Resolution:
 Keywords:  needs-design  |     Focuses:  ui, accessibility
--------------------------+--------------------------------

Comment (by joedolson):

 This behavior is now available in the navigation block, but that doesn't
 solve the problem for a lot of sites using classic themes. There are a few
 issues to solve here:

 1) Core could add a setting for the menu to make top level items into
 buttons. Option text might need some careful thought.
 2) In keeping with the historic practice of the navigation menu builder,
 core should not enqueue any scripts or CSS to handle this.
 3) Therefore, this should be behind a theme support flag, so that a
 supporting theme can provide appropriate CSS and scripting to support the
 option.

 I think this is doable, and would be of benefit to users. It offers an
 option where you can get the output like a block theme - with top level
 buttons - but get more control over the scripting that handles it.

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


More information about the wp-trac mailing list