Archived topic
Triggering Off Canvas Panel on Button Click
5 replies · Started by Vish on March 27, 2021
Hello
So, I am trying to trigger the off-canvas panel when a button I placed inside the header element is click.
This is what I am using:
<button class='slideout-toggle'>
Explore
</button>
I have used slideout-toggle class before for this purpose but it is not working now.
How can I do it now?
Hi there,
have you enabled the Off Canvas Panel in the Customizer ?
If its still an issue please share a link to the site do we can take a look.
David, yes I have.
But here's the thing: I'm using this button in homepage and in homepage, I have disabled site header (not the header element). May be that's causing this?
I have included the url.
Can you check the Off Canvas Panel is set to ON - looks like its currently set to Mobile Only.
You were right. The issue is now fixed. Thanks, David.
Glad to hear that!