Archived topic
Side menu
7 replies · Started by Hans FOURCADE on May 12, 2021
Hello,
My side menu opens well with the hamburger at the top of my page but I would like to be able to open it also by clicking on images or links. Is it possible ?
Cordially.
Hi there,
see this reply from Tom regarding how the off canvas toggle works and how a simple CSS Class added to an element can be used to trigger the opening of it:
https://generatepress.com/forums/topic/make-mobile-menu-look-like-off-canvas-menu/#post-1677690
Hello,
I can't do it. I just need to be able to open my off canvas menu by simply clicking on a button outside of the menu.
cordially
Hi Hans,
I'm not sure I understand your response here, the topic David mentioned offers the answer to your question.
Have you tried yet? Or do you need more specific steps to follow?
If so, could you link us to the button that you would like to replace the hamburger icon?
Let me know :)
Hello,
I already have my side menu which works very well but I would like to add an additional button to access it. If possible have the details to do it.
Thank you
Could you link me to the site?
How did you add the button? Let me know.
Hello,
Thank you it works perfectly ....
So the button hasn't been added yet?
I would like to know how and where you plan to add the button.
If you use a block element to add the button, in the block editor > advanced > Additional CSS class(es), add slideout-toggle
https://www.screencast.com/t/pC5X9vqCt
If you use a hook element to add the button, then try something like this:
<button class="slideout-toggle">Button</button>