Pingendo Help Center

Mobile/tablet menu not closing after select


#1

reference website http://nudimdesign.com/

When viewing the above mentioned website using a tablet or mobile phone you have the 3 line menu button to navigate the different areas. The menu works fine but does not close after you make your selection.

Is there a way to fix that?

Thanks


#2

Hi Scrif, just add these 3 lines in a JS file:

$('.navbar-collapse a').click(function() {
	$(".navbar-collapse").collapse('hide');
});

#3

Thanks. Do I need to call the function or list it in the html?


#4

Yes, of course you need to call the js file, if not, it won’t work:

<script type="text/javascript" src="file.js"></script>