Would it be too difficult to add some support for empty menu items (by utilising the value) ?

I am building a drop-down navigation bar with nice menus module and have a few nested menu items that shouldn't be click-able.

Comments

davidtrainer’s picture

Status: Active » Closed (fixed)

I do what you're describing pretty frequently. Use menu_attributes module to add a class like "nolink" to the menu item, then add the following javascript:

$('a.nolink').removeAttr('href').css('cursor', 'default');

kaipee_s2s’s picture

Status: Closed (fixed) » Active

Ah, yes that looks like it helps to expand the functionality of menus. Thanks.

Could you just clarify where you add the additional JavaScript? Is there an additional field for inline JS or something? (apologies for changing status for commenting)

davidtrainer’s picture

Status: Active » Closed (fixed)

See here for how to add JavaScript: https://drupal.org/node/304255