- This topic has 61 replies, 6 voices, and was last updated 5 years, 11 months ago by Leo.
-
AuthorPosts
-
October 16, 2017 at 5:32 pm #404510LeoStaffCustomer Support
Can you try this:
.sidebar .secondary-navigation .main-nav .current-menu-item > .sub-menu, .sidebar .secondary-navigation .main-nav .current-menu-ancestor > .sub-menu { opacity: 1 !important; display: block !important; left: auto; right: auto !important; position: relative; width: 100%; clear: both !important; top: auto; float: none; } .sidebar .current-menu-item .dropdown-menu-toggle, .sidebar .current-menu-ancestor .dropdown-menu-toggle { display: none; }
October 17, 2017 at 12:15 am #404631CrisPerfect!!
Thank you!!October 17, 2017 at 8:33 am #404976LeoStaffCustomer SupportNo problem!
December 8, 2017 at 12:11 am #444568IngridHi Tom,
I updated the sites with this CSS on it to the new GP version and it broke al my menu’s (I am using child-themes). Subitems aren’t visible or clickable anymore :-(. When I remove the extra CSS everything works like it should. Could you provide is with an adjustment in the extra CSS above so that it works with the new version of GP?
Thanks!
December 8, 2017 at 8:29 am #444875LeoStaffCustomer SupportHi there,
Can you link us to the site again with the code added so we can see what the problem is?
Thanks!
December 8, 2017 at 11:32 am #445057IngridWe used the code on over 100 (small) websites. And the menu broke on all of them :-(.
Here is one URL where the problem still exists;
https://1.segment.nl/bmwe/One test-website where I removed the extra CSS;
https://1.segment.nl/testmenu/This is the code we are using;
.sidebar .main-navigation .main-nav .current-menu-item .sub-menu,
.sidebar .main-navigation .main-nav .current-menu-ancestor .sub-menu {
opacity: 1 !important;
display: block !important;
left: auto;
right: auto !important;
position: relative;
width: 100%;
clear: both !important;
top: auto;
float: none;
}.sidebar .current-menu-item .dropdown-menu-toggle,
.sidebar .current-menu-ancestor .dropdown-menu-toggle {
display: none;
}Thanks for your help!
December 8, 2017 at 1:19 pm #445144CrisHi, me too
I updated to the new GP version and it broke secondary menu.
I use the same CSS than Ingrid but, if I remove it, the menu still does not work.
You can see it here: http://bit.ly/2yrHR5eDecember 8, 2017 at 7:58 pm #445304TomLead DeveloperLead DeveloperI just adjusted the CSS on the front page to work with 2.0: https://generatepress.com/forums/topic/keep-dropdown-submenu-items-visible/#post-258688
Sorry for the inconvenience!
Let me know ๐
December 8, 2017 at 10:49 pm #445386IngridYES!! Problem solved! Thanks Tom! Huge fan of GP and your service!
December 8, 2017 at 11:23 pm #445393TomLead DeveloperLead DeveloperGlad I could help! ๐
December 9, 2017 at 1:51 am #445451CrisThanks Tom but mine doesn’t work yet. I think my problem is not CSS because if I delete it, the problem of spaces continue. And with your new CSS do nothing.
December 9, 2017 at 8:57 am #445694TomLead DeveloperLead DeveloperCan you remove the custom CSS completely so I can see why it doesn’t work?
December 9, 2017 at 5:50 pm #445947Crisok, I removed all custom CSS.
December 9, 2017 at 10:55 pm #446021TomLead DeveloperLead DeveloperAh yes, that looks like a bug in 2.0 and the Secondary Navigation.
For now, add this CSS:
.dropdown-click .widget-area .secondary-navigation ul ul:not(.toggled-on) { position: absolute; left: -99999px; }
December 10, 2017 at 4:17 am #446101CrisWork perfect! Thanks Tom!
-
AuthorPosts
- You must be logged in to reply to this topic.