Home › Forums › Support › Make the drop down menu stay open on off canvas menu on mobile & tablet only
- This topic has 9 replies, 3 voices, and was last updated 3 years, 5 months ago by
David.
-
AuthorPosts
-
October 28, 2019 at 11:30 pm #1047442
Willya
Hi, is it possible to make the drop down menu stay open on off canvas menu on mobile & tablet menu?
Please see my website url and click the menu of “2019 Editor Choice”, so I want the drop down of that menu stay open so that visitor dont need top click the arrow to open the drop down menu.
Thanks
October 29, 2019 at 9:33 am #1047983Tom
Lead DeveloperLead DeveloperHi there,
Give this CSS a shot:
#generate-slideout-menu .slideout-menu li#menu-item-4749 > .sub-menu { left: auto; opacity: 1; pointer-events: auto; height: auto; overflow: visible; display: block; } .slideout-navigation #menu-item-4749 .dropdown-menu-toggle { display: none; }October 29, 2019 at 5:01 pm #1048320Willya
It works!
Thank you my hero!
October 30, 2019 at 8:48 am #1048956Tom
Lead DeveloperLead DeveloperGlad I could help 🙂
May 12, 2021 at 3:19 am #1775571Jorge
Thanks Tom, as you always look for a solution for all of us.
I need that submenu be shown expanded but I need to close it if the user wants.
About that snippet, I see that —-li#menu-item-XXXXXXX—– is not an ID but is a class —–li.menu-item-XXXXXXX——
(If I leave # does nothing and if write . works)Of course I´ve not used the second part that displays none the close icon.
How and I do for showing it expanded and close if needed.
This is the url: https://www.arenamartinez.com
Thanks
May 12, 2021 at 3:33 am #1775592David
StaffCustomer SupportHi Jorge,
i see you have a topic open – all of the current solutions you have found will simply display them as always open. We will look for a JS solution to the issue – and will reply to your open topic here:
https://generatepress.com/forums/topic/sub-nav-open-by-default-for-mobiles/#post-1775565
May 12, 2021 at 3:40 am #1775600Jorge
David, I know it and excuseme. Just I founded it after write here. Excuseme, please.
May 12, 2021 at 4:47 am #1775684David
StaffCustomer SupportNo problems – we’re looking into the options – will reply to your topic 🙂
November 22, 2022 at 3:17 am #2426898Simon
Hi Tom, David
As ever, it is brilliant to be able to search a solution and find it’s already there! Makes GeneratePress awesome.
Here is the solution that worked for us. Exactly as Tom suggested above, except as Jorge said it just needed a .class rather than #id.
/* Opens About menu by default */ #generate-slideout-menu .slideout-menu li.menu-item-23397 > .sub-menu { left: auto; opacity: 1; pointer-events: auto; height: auto; overflow: visible; display: block; } .slideout-navigation .menu-item-23397 .dropdown-menu-toggle { display: none; }November 22, 2022 at 7:12 am #2427217David
StaffCustomer SupportGlad to hear you found this !!!
-
AuthorPosts
- You must be logged in to reply to this topic.