Archived topic
Slide-out bar
7 replies · Started by Matthias on May 9, 2020
hi there,
is it possible to have a menu item - and when you click on it a slide out bar comes up with a list entry or similar?
What i mean:
menu item "shop" - when you click on it a bar with a list of products comes up on the side. The items on the list should either be words only (for things only available via contact) or links to items in a woocommerce shop. Also a contact link should be on that.
Looking something like on this site - when you click on the menu item "Blöcke" (most right). As you can see this is no link (hovering over the menu item shows https://gutenberg-editor.de/#) - but only opens up the sidebar.
And instead of Blöcke (its a german side describing gutenberg blocks - in case you wonder) i want shop - and instead of the blocks i want text only or links.
Is this possible with gp?
Hi there,
try the Off Canvas Panel:
https://docs.generatepress.com/article/off-canvas-panel-overview/
It can contain its own navigation menu and has its own widget area
thx. I already have the off-canvas-panel set for mobile navigation (fullscreen).
Is there a way to duplicate it for a shop list?
In general: is it possible to use a "page" rather then a menu for the panel - e.g. to have a slide-out contact form?
No option in GP to duplicate the panel - you would need to look for a plugin or custom development.
Haven't tested but seen this plugin recently:
thx for the suggestion. The plugin looks good- but:
The plugin page mentions that it does not work with all themes and you should check some stuff beforehand.
It is described here:
https://github.com/JoryHogeveen/off-canvas-sidebars/wiki/Theme-setup
You may know if gp supports these settings by having a quick look i guess.
Also gp is mentioned in the list "with currently known compatible theme hooks"
https://github.com/JoryHogeveen/off-canvas-sidebars/wiki/Compatible-theme-hooks
Is this a go or a no? :P - as you say you have seen this plugin: you have seen gp users using it? Or you just saw it somewhere? ;)
Hi there,
This setup should work with GP: https://github.com/JoryHogeveen/off-canvas-sidebars/wiki/Theme-setup#basic-theme-setup
Thx guys.
You just have to change the default settings to those mentioned in the link - and it works.
Nice plugin for a nice theme.
Glad it worked :)