I am currently using a Wordpress theme named ichiban, which can be viewed by following this link. Within this theme, I have created custom menu items that are designed to link directly to different sections on the same page. However, I am encountering an issue where I would like the entire menu to collapse when a specific <li> item is clicked. Below is the code snippet I have been working with:
jQuery( document ).ready(function($) {
$('#menu-main li a').on("click", function(){
$('.site-overlay-wrapper').hide();
});
});
Currently, this code successfully hides the open menu but does not reset the menu button, making it impossible to re-open the menu. Any assistance in correcting this issue would be greatly appreciated.
SOLUTION
jQuery( document ).ready(function($) {
$('#menu-main li a').on("click", function(){
$("body").removeClass("overlay-open");
});
});
Thank you all for your help!