Start a new discussion

To start a new discussion please visit the discussions section of the GitHub home page of the project.

Discussions on GitHub

You can also search our old self-hosted forums for any useful information below but please note that posting new content here is not possible any more.

Reply To: Different action for parent link and submenu

Home Forums Older releases 1.0.x + Bootstrap addon Different action for parent link and submenu Reply To: Different action for parent link and submenu

#3242
admin
Keymaster

This is an old topic I’ve obviously missed answering at the time for some reason but if someone needs this in the future, you could do it by using the showOnClick: true option. It would make your menu behave like a desktop app menu – i.e. click to activate first sub menu, then hover to show any other sub menus and click again to deactivate the sub menus. In the case with the Bootstrap addon, you would need to add it in “jquery.smartmenus.bootstrap.js” – just find this line:

					$this.smartmenus({

and replace it with:

					$this.smartmenus({
							showOnClick: true,