jquery - Twitter Bootstrap - Navbar toggle won't open on pages other than the index -
i've been experimenting bootstrap 3 on site here: http://infenterprises.com/
problem is, when attempt open navbar toggle (mobile view) opens on home page. services drop-down as-well.
thank you!
<div class="container-fluid"> <!-- brand , toggle grouped better mobile display --> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-collapse"> <span class="sr-only">toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="http://infenterprises.com/">infenterprises</a> </div> <!-- collect nav links, forms, , other content toggling --> <div class="collapse navbar-collapse navbar-right" id="navbar-collapse"> <ul class="nav navbar-nav"> <li class="active"><a href="http://infenterprises.com/">home</a></li> <li><a href="../about/">about</a></li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">projects<span class="caret"> </span> </a><ul class="dropdown-menu" role="menu"> <li><a href="#1">item 1</a></li> <li class="divider"></li> <li><a href="#2">item 2</a></li> </ul> </li> <li><a href="../services/">services</a></li> <li><a href="../contact/">contact</a></li> </ul> </div><!-- /.navbar-collapse --> </div><!-- /.container-fluid --> </nav> </header>
you seem have 404 error pointing wrong resource in console. if didn't know, can check through 'inspect element' option when right-click on page.
failed load resource: server responded status of 404 (not found) http://infenterprises.com/about/assets/js/bootstrap.min.js
check link make sure have correct. guess: try using root absolute path instead of relative path. e.g. <script src="/assets/js/bootstrap.min.js"></script>
Comments
Post a Comment