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: Two navbars, apply to one, ignore the other...

Home Forums Older releases 0.9.x Two navbars, apply to one, ignore the other... Reply To: Two navbars, apply to one, ignore the other...

#2291
admin
Keymaster

Yep, at the moment by default the script will automatically work for all navbars on the page. But I like your suggestion and I will consider adding the possibility to easily skip any navbar – e.g. could be something like this in the JS:

 $('ul.navbar-nav:not([data-smartmenus-skip])').each(function() {  ...

and this in the HTML:

<ul class="nav navbar-nav" data-smartmenus-skip="true">...

So that modifying the default “jquery.smartmenus.bootstrap.js” wouldn’t be required like now.

Cheers!