This topic has 10 replies, 3 voices, and was last updated 3 years, 11 months ago ago by Rose Tyler
I am creating a mega menu with static blocks and it seems that there is some js that is calculating smt and injects style that moves the dropdown to the left. I want all dropdowns of all nav elements to take the same space and start from the beginning of first element.
I would like dropdowns to be like this
Hello,
Do you want to make the mega menu also full-width even if it includes the 1 column or just to show it from the start of the parent menu item http://prntscr.com/vv05o8 ?
Regards
Yes full width regardless the columns of each element
Hello,
Add below code to Theme Options > Custom CSS
@media only screen and (min-width: 992px) {
.site-header .item-design-mega-menu .nav-sublist-dropdown {
left: 0 !important;
margin: 0 !important;
right: 0 !important;
width: 100% !important;
max-width: 100% !important;
transform: none !important;
}
.item-design-mega-menu, .header-top,
.header-main, .header-bottom,
.header-wrapper .header-bottom .et_column {
position: static;
}
}
If it does not help then provide us with a link to your site and temporary WP Dashboard access.
Regards
No, it adds full width but not limited to the header, i uploaded the staging site to a url of mine to give you access
With these changes to your code the visual result is exactly what i need
@media only screen and (min-width: 992px) {
.site-header .item-design-mega-menu .nav-sublist-dropdown {
left: 20em !important;
margin: 0 !important;
right: 0 !important;
width: 100% !important;
max-width: 70% !important;
transform: none !important;
overflow:scroll;
}
.item-design-mega-menu, .header-top,
.header-main, .header-bottom,
.header-wrapper .header-bottom .et_column {
position:static;
}
}
The problem is that the dropdown won’t stay open when i hover.
You can see it live on the link and credentials i provided you in my previous post.
Thank you in advance
Hello,
Check now, please.
Regards
You are just the best! Thank you very much!
Hello,
You’re welcome!
Regards
You must be logged in to reply to this topic.Log in/Sign up