Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bootstrap collapse menu problem #10

Closed
yderindere opened this issue Aug 11, 2014 · 3 comments
Closed

Bootstrap collapse menu problem #10

yderindere opened this issue Aug 11, 2014 · 3 comments

Comments

@yderindere
Copy link

Hi Mark,

Thanks for the plugin. it's awesome but I've a problem. I've used with bootstrap and collapse menu not working at top. When I scroll down, collapse menu works.
Check it out http://demo.themecube.net/zakat/

Thanks in advance

@denistsoi
Copy link

Your question is more of a bootstrap problem.

I believe that the bootstrap frame work is searching for the first instance of "navbar-collapse" and editing the height of the "navbar-collapse" whenever you click on the "navbar-toggle".

[found by inspecting your html code view web inspector]. You'll have to edit your Front-end js code to account for the headhesive cloned menu (and is not necessarily a bug within Headhesive).

@markgoodyear
Copy link
Owner

Hey @yderindere, this is more a Bootstrap problem as @denistsoi mentions. The way the Boostrap data attributes look to work is that it only opens up one of the menu's. As Headhesive.js clones the header, there are two to open up.

A way to solve this is to not use the data attributes for the collapse, and use the JS implementation instead. I've created a JSFiddle of this in action here: http://jsfiddle.net/2vzwg373/1/. Both menu's are toggled with this method :).

Cheers,
Mark

@yderindere
Copy link
Author

Hi Mark,

Thank you so much ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants