- This topic has 12 replies, 2 voices, and was last updated 5 years, 8 months ago by
David.
-
AuthorPosts
-
February 2, 2018 at 7:01 am #486450
Rae
I am using the mega menu styling technique I found in the Generate Press knowledge base to create a full-width 4-column menu on my site. The problem is that when the user’s mouse leaves the parent navigation item diagonally, to get to the first column menu items, the menu disappears too quickly. Is there any way to increase the exit delay of the sub navigation menus?
February 2, 2018 at 10:56 am #486643Tom
Lead DeveloperLead DeveloperSince the navigation uses pure CSS now instead of javascript, I’m not sure if it’s possible to set a delay.
I’ll do some digging today and will get back to you.
February 2, 2018 at 11:03 am #486652Tom
Lead DeveloperLead DeveloperJust played with a for a second, maybe try this:
.main-navigation ul ul { transition-delay: 300ms; height: auto; }February 2, 2018 at 12:16 pm #486723Rae
Brilliant! This works perfectly. Thanks Tom!
February 2, 2018 at 9:33 pm #486912Tom
Lead DeveloperLead DeveloperYou’re welcome 🙂
July 30, 2020 at 2:54 am #1381579Jessica
Hi, i have the same problem at http://wp12076150.server-he.de/
Adding following code doesn´t work:
.main-navigation ul ul {
transition-delay: 300ms;
height: auto;
}What did i wrong?
Thanks for help!
July 30, 2020 at 3:53 am #1381628David
StaffCustomer SupportHi there,
the issue arises because you’re using this CSS to add top margin to the menu:
.main-navigation ul { margin-top: 22px !important; }Margins create a space between elements, so the mouse loses hover focus as you cross the gap.
Remove that CSS and try this instead:
.main-navigation .main-nav ul li.menu-item-has-children > a { padding-bottom: 22px; }July 30, 2020 at 4:47 am #1381674Jessica
Thanks for the fast help!
Now the submenu works, but the position of Main Nav and Submenu are wrong

You understand my problem?
July 30, 2020 at 7:41 am #1381809David
StaffCustomer SupportThe URL you have provided is timing out ?
July 30, 2020 at 8:09 am #1381993Jessica
July 30, 2020 at 8:26 am #1382009David
StaffCustomer SupportWhat about this:
.main-navigation .main-nav ul li.menu-item-has-children > a { padding-bottom: 22px; padding-top: 22px; margin-top: 22px; }July 30, 2020 at 9:34 am #1382085Jessica
thanks, the space between first entry is a little bit to big, but think i can use this. 🙂
July 31, 2020 at 1:11 am #1382653David
StaffCustomer SupportGlad to be of help
-
AuthorPosts
- You must be logged in to reply to this topic.