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

WordPress Trac noreply at wordpress.org
Mon Oct 7 15:53:59 UTC 2013


#13273: Allow "'non-clickable" menu items
-------------------------------------+-----------------------------
 Reporter:  stgoos                   |       Owner:
     Type:  enhancement              |      Status:  new
 Priority:  normal                   |   Milestone:  Future Release
Component:  Menus                    |     Version:
 Severity:  minor                    |  Resolution:
 Keywords:  menu non-clickable item  |
-------------------------------------+-----------------------------
Changes (by Jesper800):

 * keywords:  menu, non-clickable item => menu non-clickable item


Comment:

 There are basically two approaches to this as far as the outputted HTML is
 concerned.

 The first option is to output an anchor tag without the href-attribute.
 This is what already happens when you add a custom link and remove the
 URL, as oellefsen suggested. The second option is to remove/replace the
 anchor tag.

 The second option will probably cause a lot of problems styling-wise, as a
 lot of styling is applied on the anchor tags in menus. The first one is
 the way to go, in my opinion, as it won't cause any of the problems and
 still have the desired effect.

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


More information about the wp-trac mailing list