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: TO SEE SUB-MENU When mouse click

Home Forums Older releases 0.9.x TO SEE SUB-MENU When mouse click Reply To: TO SEE SUB-MENU When mouse click

#3253
admin
Keymaster

If you are using the Bootstrap addon, you don’t need to initialize your menu like this:

$(function() {
  $('#main-menu').smartmenus({
  noMouseOver:true,
  subIndicatorsText: " <i class='fa fa-caret-down' aria-hidden='true'></i>",
  subIndicatorsPos: "append",
});

Just add any custom options in “jquery.smartmenus.bootstrap.js” after this line:

					$this.smartmenus({

e.g. like this:

					$this.smartmenus({
						noMouseOver: true,
						...

The next version will allow setting any options via a new attribute “data-sm-options” but for now editing the “jquery.smartmenus.bootstrap.js” file is required.