Mobile menu doesn't close on link click

Hi Hackers,

When I click on “subscribe” inside menu on mobile, the menu doesn’t close. I do use JQuery to toggle a class for the menu background which works on all menus. Also, the menu closes when I click on a link.

But the menu doesn’t close, and the class “bg-trick” doesn’t toggle when I click on “subscribe.”

This is the Jquery for all the links that need it

This one in particular just doesn’t do anything

$(‘.subscribe-mobile-menu’).on(‘click’, function() {
$(‘#tricker’).toggleClass(‘bg-trick’);
});

The menu should at least close.

Need your help please.

Thank you


Here is my site Read-Only: [LINK][1]
([how to share your site Read-Only link][2])

Here is the site https://youvelop.com