jonbon jonbon - 5 months ago 20
HTML Question

Bootstrap CSS menu won't open when collapsed

I'm using Pico CMS. Here is the navigation code

<!-- Navigation -->
<nav class="navbar navbar-default navbar-custom navbar-fixed-top">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header page-scroll">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#collapseID">
<span class="sr-only">Toggle navigation</span>
Menu <i class="fa fa-bars"></i>
<a class="navbar-brand" href="#">Broadstone Services</a>

<!-- Collect the nav links, forms, and other content for toggling -->
<div class="navbar-collapse collapse" id="collapseID">
<ul class="nav navbar-nav navbar-right">
<a href="/">Home</a>
<a href="about">About</a>
<a href="solutions">Solutions</a>
<a href="contact">Contact</a>
<a href="blog">Blog</a>

<!-- /.navbar-collapse -->
<!-- /.container -->

When my page is full screen, the menu items look great. However, when the page window is made a lot smaller (or on mobile) the menu doesn't expand.


You are not loading the jQuery and Bootstrap JavaScript libraries that perform the functional uncollapse.

<script src="//"></script>
<script src="//" crossorigin="anonymous"></script>


For functional reference see: