I created a responsive menu using Bootstrap 4.0.0. The collapsible menu works by opening when clicked, however, it does not close when clicked again. Here is the code:
html:
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a href="index.php"><img class="nav-link" src="wp-content\themes\VillanovaTheme\img\home.svg"
id="homeimage"></a>
<button id="bottone" class="navbar-toggler js-scroll-trigger" type="button" data-toggle="collapse"
data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false"
aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link js-scroll-trigger" href="#1">Highlight Places and Prominent Personalities</a>
</li>
<li class="nav-item active">
<a class="nav-link js-scroll-trigger" href="#2">Cultural and Gastronomic Events</a>
</li>
<li class="nav-item active">
<a class="nav-link js-scroll-trigger" href="#3">Accommodation Facilities in Villanova di Camposampiero Territory</a>
</li>
<li class="nav-item active">
<a class="nav-link js-scroll-trigger" href="#4">Services</a>
</li>
<li class="nav-item active">
<a class="nav-link js-scroll-trigger" href="#5">Contact Information</a>
</li>
</ul>
</div>
</nav>