I recently obtained and modified a basic bootstrap 4 theme. By customization, I mean that I ensured all menu items have the same margin and added my logo.
The issue I encountered is that on tablets, the navbar does not collapse as expected. I have attached a photo of this problem for reference.
You can also take a look at my demo site here.
<nav class="navbar navbar-expand-lg bg-white" id="site_navigation">
<a class="navbar-brand" href="<?php echo $host; ?>" title="">
<img src="<?php echo $host; ?>/images/assets/logo2.png" class="img-responsive site_logo" alt=""/>
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExampleDefault" aria-controls="navbarsExampleDefault" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"><i class="fa fa-bars navbar_ikon"></i></span>
</button>
<div class="collapse navbar-collapse" id="navbarsExampleDefault">
<ul class="navbar-nav mr-auto">
<li class="nav-item dropdown"> <a class="nav-link dropdown-toggle" href="http://example.com" id="dropdown01" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Services</a>
<div class="dropdown-menu" aria-labelledby="dropdown01"> <a class="dropdown-item" href="#">Action</a> <a class="dropdown-item" href="#">Another action</a> <a class="dropdown-item" href="#">Something else here</a> </div>
</li>
<li class="nav-item dropdown"> <a class="nav-link dropdown-toggle" href="http://example.com" id="dropdown01" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">About us</a>
<div class="dropdown-menu" aria-labelledby="dropdown01"> <a class="dropdown-item" href="#">Action</a> <a class="dropdown-item" href="#">Another action</a> <a class="dropdown-item" href="#">Something else here</a> </div>
</li>
<li class="nav-item"> <a class="nav-link" href="<?php echo $host; ?>/webshop-creation">Webshop Creation</a> </li>
<li class="nav-item"> <a class="nav-link" href="#">References</a> </li>
</ul>
<ul class="navbar-nav ml-auto">
<li class="nav-item"> <a class="nav_link_last_1" href="#"><i class="fa fa-envelope"></i> Contact Us</a> </li>
<li class="nav-item"> <a class="nav_link_last_2" href="#"><i class="fa fa-file"></i> Request a Quote</a></li>
</ul>
</div>
</nav>
This is where the issue lies on tablet view - what's causing the logo to disappear and how are the menu items affected?