One issue I am facing is with the menu functionality on my website. Currently, when a user clicks on a chapter in the menu, it doesn't automatically close after they make their selection. Instead, users have to manually click the menu button again to close it. Ideally, I would like the menu to close itself after a chapter is selected.
I've considered fixing the menu button or header, but this presents another problem as the button won't slide to the right when clicked, making it impossible for users to close the menu that way.
You can view the current setup and code on JSFiddle
HTML
<body class="cbp-spmenu-push">
... (More HTML code here)
</script>
CSS
.cbp-spmenu {
... (CSS styles here)
}
JAVASCRIPT
(JavaScript function here)