Streaming live at 10am (PST)

Close menu after clicking

#1

Hi, guys!

When i click on the menu, the link it’s going to the section but the menu is still open. I need - it should close after clicking the menu link.

The structure of menu is simple: ( 1- nav-menu / 2- menu-links / 3-link-section )

In the custom code area, I try to insert these 2 codes, but nothing works. It’s going to section, but don’t close after it.

1- First try
('.nav-menu menu-links a').on('click', function(){ (".nav-menu").hide();
});

2- Second try
$(’.nav-menu menu-links a’).on(“click”, function (e) {
menuLink.click().removeClass(“active”);
});

Anyone can help me with this?

Here is my public share link: https://preview.webflow.com/preview/rodrigo-pellegrino?utm_source=rodrigo-pellegrino&preview=a9379d2d5b33cf171543499ae5e61e73