Hi,
On this One Page Menu test site, I ised this JS to close the fixed mobile menu after clicking:
(function($){
$(’.x-navbar .x-nav-wrap.mobile a’).click(function(){
$(’.x-nav-wrap.mobile’).toggleClass(‘in’).css(‘height’, 0);
$(’.x-btn-navbar’).toggleClass(‘collapsed’);
});
})(jQuery);
But it now works only once and after one click the mobile menu is not collapsing any more…
I can’t see why it’s not working anymore, Can you have a look please…?
This is the site: https://bubbels.nl/wp/
Thx, Carel