Hey, I’m just starting to get into Bootstrap and have been running into problems making a navbar that collapses into a button. I’ve been trying to figure it out for the last few hours but have had little success. The navbar seems to be two times too tall when in full width but then returns to the correct heigh when compressed. Also, the button doesn’t work at all.
The reason the navbar isn’t working is because you need to have bootstraps js library on the page. If you go to the codepen settings and add another resource under jquery, then paste this into it: https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js, that should get it to work.
Also, the reason the links aren’t on the same line as the brand is because you have the collapsible div inside the navbar-header, you want to move it outside so it’s a child of the container, like so:
Thanks for the feedback! I was able to get the nav bar to the correct height but I’m still unable to get the button to work. I added the link you sent under Jquery in the JavaScript settings but still had no luck. Any ideas?
Just in case someone is stumbling over this and still having issues. There are some alleged fixes for this problem, like adding Bootstrap in settings. Just in case it didn’t work, it might be a problem of you still having Bootstrap enabled under “CSS”. Clear that one and use the solution mentioned above and you should be good to go