- This topic has 61 replies, 6 voices, and was last updated 7 years, 3 months ago by
Leo.
-
AuthorPosts
-
October 16, 2017 at 5:32 pm #404510
Leo
StaffCustomer SupportCan 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 #404631Cris
Perfect!!
Thank you!!October 17, 2017 at 8:33 am #404976Leo
StaffCustomer SupportNo problem!
December 8, 2017 at 12:11 am #444568Ingrid
Hi 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 #444875Leo
StaffCustomer 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 #445057Ingrid
We 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 #445144Cris
Hi, 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 #445304Tom
Lead 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 #445386Ingrid
YES!! Problem solved! Thanks Tom! Huge fan of GP and your service!
December 8, 2017 at 11:23 pm #445393Tom
Lead DeveloperLead DeveloperGlad I could help! 🙂
December 9, 2017 at 1:51 am #445451Cris
Thanks 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 #445694Tom
Lead DeveloperLead DeveloperCan you remove the custom CSS completely so I can see why it doesn’t work?
December 9, 2017 at 5:50 pm #445947Cris
ok, I removed all custom CSS.
December 9, 2017 at 10:55 pm #446021Tom
Lead 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 #446101Cris
Work perfect! Thanks Tom!
-
AuthorPosts
- You must be logged in to reply to this topic.