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.

ecommunities

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Two navbars, apply to one, ignore the other... #2292
    ecommunities
    Participant

    Great idea, just shorten the tag to ‘sm-skip’ and you’re golden 🙂 Keeps the prefix inline with your current class nomenclature, is a little less verbose, and still gets the point across. Big fan of data attributes, so this seems like the logical choice.

    Thanks, and Cheers!

    in reply to: Two navbars, apply to one, ignore the other... #2288
    ecommunities
    Participant

    Ok, sometimes it takes filing a support request to empty your head so you can find the problem….

    I finally noticed your note at the end of the Bootstrap specific page…

    The default options used in jquery.smartmenus.bootstrap.js should work well for all. However, you can, of course, tweak them if you like.

    I altered the starting lines like so…

    
    $('ul.navbar-nav.sm').each(function() {    // <- added the '.sm'
    	var $this = $(this);
    	$this.smartmenus({                // <- removed the '.addClass('sm')'
                ...
            });
    });
    

    While it was a simple fix, it’s a bit of a PITA to have to change this every time you update your codebase, would have preferred this to be some form of call time param.

    Anyhow, thanks for a great piece of code!

    Cheers,

    Kevin.

    in reply to: Two navbars, apply to one, ignore the other... #2287
    ecommunities
    Participant

    I should add, that this is a “Bootstrap 3” navbar. The site says it’s Zero Config, so I’m guessing that the “sm” class as equally zero effect.

Viewing 3 posts - 1 through 3 (of 3 total)