- This topic has 24 replies, 5 voices, and was last updated 3 years, 1 month ago by
Greg.
-
AuthorPosts
-
August 24, 2022 at 11:59 am #2322768
Ying
StaffCustomer SupportCan you link us to your site?
Do you want the off-canvas menu only on desktop, and use the normal primary navigation on mobile and tablet?
August 24, 2022 at 12:19 pm #2322786Björn
The website is https://biancahoeltje.de
My intention is to use the Off Canvas menu as a hidden menu on both desktop and mobile.
When a visitor clicks the menu item “Member area” the Off Canvas menu should open and display another menu for members including the log-in form.
It worked with the desktop view as I intented but on mobile view the (hamburger icon)MENU worked as the Off Canvas menu directly.
David’s solution worked fine so far in terms of this functionality but now I am seeing both member area buttons. The original Off Canvas as well as David’s button.
I did not expect this to be so complicated as I thought the Off Canvas menu would behave the same on desktop as well as on mobile. Maybe I rethink this functionality.
August 24, 2022 at 12:54 pm #2322828Ying
StaffCustomer SupportI don’t seem to see the issue you described, when I view your site on mobile, the hamburger opens the primary navigation, if I click the Member area menu item, it opens the off-canvas menu, I shot a small clip:
https://www.screencast.com/t/0zByMrOZprIf this is not what you see on your end, can you make sure all cache is cleared?
August 24, 2022 at 12:59 pm #2322835Björn
After David’s intervention it works as intented but on desktop you should see two buttons “Mitgliederbereich”.
August 24, 2022 at 2:32 pm #2322898Ying
StaffCustomer SupportOh I thought the issue was on mobile, so it is on desktop?
If that’s the case, check the step 2 here: https://generatepress.com/forums/topic/custom-off-canvas-menu-icon/#post-2322168
Try change the
hide-on-mobiletohide-on-desktop.August 25, 2022 at 12:32 am #2323161Björn
The issue was first on mobile. David’s solution created another issue on desktop.
Which you solved by you suggestion.
Thank you very much!!
August 25, 2022 at 9:40 am #2323797Ying
StaffCustomer SupportYou are welcome 🙂
February 22, 2023 at 6:53 am #2542557Greg
Hi David,
Apologies for responding to an old topic, but wondered if there’s an easy way to use the same custom off canvas menu icon for tablet/mobile as well as desktop?
I tried modifying the snippet you provided earlier in this topic but couldn’t figure out what I needed.
I have Off Canvas Panel set to On in my customiser settings (eg. Desktop and mobile)
Any help very much appreciated.
Thanks,
GregFebruary 22, 2023 at 9:30 am #2542916David
StaffCustomer SupportHi there,
thats should apply to all OFC menu icons – is it possible to see your site ?
If need be, raise a new topic where you can share a site URL in the private info field.February 22, 2023 at 9:32 am #2542923Greg
Thanks David, will open a new topic with the URL.
Greg -
AuthorPosts
- You must be logged in to reply to this topic.