Archived topic
Advanced tweaks on header and menus
1 reply · Started by Thomas on February 15, 2023
Hello GP team,
I'm currently working on an installation with lot of customization and want to remove some stuff on tablet and mobile.
I have implemented a bottom menu on mobile and tablet and would like to achieve this:
1. Unset the button with the .menu-toggle class using a filter (it only appear on mobile menu if I'm not wrong).
2. Same with the secondary menu but unset the button with .menu-toggle .secondary-menu-toggle using a filter,
3. Activate the off-canvas everywhere (so that the "slideout-toggle" class can be used to trigger the off-canvas menu from the bottom menu bar menu item on table and mobile) but remove the burger icon in the desktop menu with something cleaner than display:none.
I indeed tried to use the slideout-toggle class with offcanvas set to on mobile only but this doesn't worked.
4. Override the native search so that it only search woocommerce products. To achieve that, I need to change the destination of the search result page from " https://mydomain/?s=xxx " to " https://mydomain/?post_type=product&s=xxx "
I have been using GP Premium for years on multiples projects now but there are still things to learn using it 😅
Thanks in advance
Hi Thomas,
If you don't mind, please post 1 question per topic in the future, it'll be much easier for us to follow up.
For this topic, let's deal with 1 question at a time.
1. Unset the button with the .menu-toggle class using a filter (it only appear on mobile menu if I’m not wrong).
what do you mean unset?