Same Page Menu not working

Posted in: Newspaper
Post count: 2

Hello,

I’ve been trying to setup a same page menu with smooth scrolling at my website: https://mai4car.eu/

I achieved this by setting menu items to #id (e.g. https://mai4car.eu/#about) and enabling smooth scrolling on the page with custom CSS.

The issue is with the mobile menu. Unfortunately when I click on the menu option, the mobile menu does not close to allow for smooth scrolling to the page section.

Is there a way around this issue? Is there a better way to achieve one-page websites with scroll menu?

Thanks

Post count: 2

Never mind. Solved this my self. Added this custom code:


jQuery(".menu-item").on("click",function(){
jQuery("body").removeClass("td-menu-mob-open-menu")
});

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.