Archived topic
Multi level off-screen panel mobile menu
1 reply · Started by fabien on June 8, 2021
Hi there,
Can a little CSS tweak implement a multi-level mobile menu similar to https://codepen.io/tomsteward/pen/NWbJZEO , as opposed to the menu's sub-categories dropping down?
Hi Fabien,
It's doable but it will be a significant amount of customization which is outside of our scope of support.
This isn't a simple CSS tweak because there's JS involved. It may conflict with the current JS used by the theme.
But to point you in a direction to do this:
First you have to dequeue the GP menu scripts - https://generatepress.com/forums/topic/instructions-to-dequeue-some-unused-gp-js-related-to-menu-etc/#post-531910
You then add the script to the site. You can usually hook in the scripts using a Hook element for that. Hook it on wp_footer.
Make sure you read what the script does and match it to the rendered HTML's css selectors. Else, it won't work.