- This topic has 9 replies, 4 voices, and was last updated 8 years, 8 months ago by
Leo.
-
AuthorPosts
-
July 13, 2017 at 11:59 am #349037
Daniel
Currently we have menu locations for slideout menu and primary.
However, I want to have sub menus only showing on mobile only.
can we not have a location added for a mobile only menu?
Or am I missing something?July 13, 2017 at 12:04 pm #349042Leo
StaffCustomer SupportHi there,
So you are wanting to hide the submenu items in the slideout menu on desktop?
If so try adding
hide-on-desktopin the Custom Classes field of those sub menu items: https://docs.generatepress.com/article/using-the-wordpress-menu-builder/#custom-classesLet me know if this is what you are looking for.
July 13, 2017 at 12:35 pm #349048Daniel
Ok, that worked, but how do I get rid of the dropdown arrow too?
Thanks in advance 🙂
July 13, 2017 at 2:54 pm #349099Leo
StaffCustomer SupportTry this:
@media (max-width: 768px) { .menu-item-has-children .dropdown-menu-toggle { display: none; } .main-navigation .main-nav ul li.menu-item-has-children > a { padding-right: 20px; } }July 13, 2017 at 3:02 pm #349100Daniel
Perfect! I wanted to hide it on desktop.
Ok, last thing, for the mobile menu, is there anyway to have all the menu items expanded by default without having to click the burger menu.
I would like to remove the burger menu all together and just have all my mobile menu items (including sub items visible by default), can this be done?Leo, thanks for the help by the way.
Saved me a lot of head scratching 🙂
July 14, 2017 at 12:22 am #349226Tom
Lead DeveloperLead DeveloperSomething like this maybe?:
@media (max-width:768px) { .menu-toggle { display: none !important; } .main-navigation .main-nav > ul { display: block !important; } }August 1, 2017 at 2:16 pm #358266Jay
Can that be done with the secondary navigation? What would be the code for that?
@media (max-width:768px) {
.menu-toggle {
display: none !important;
}.main-navigation .main-nav > ul {
display: block !important;
}
}August 1, 2017 at 6:14 pm #358366Leo
StaffCustomer SupportGive this a shot:
@media (max-width:768px) { .menu-toggle.secondary-menu-toggle { display: none !important; } .secondary-navigation .main-nav > ul { display: block !important; } }August 2, 2017 at 4:47 pm #358823Jay
That worked! Thanks Leo
August 2, 2017 at 5:37 pm #358830Leo
StaffCustomer SupportNo problem!
-
AuthorPosts
- You must be logged in to reply to this topic.