Home › Forums › WoodMart support forum › MegaMenu Full width
MegaMenu Full width
- This topic has 6 replies, 2 voices, and was last updated 9 months, 3 weeks ago by
Aizaz Imtiaz Awan.
-
AuthorPosts
-
July 1, 2024 at 9:21 pm #576861
tommygainwickParticipantHow to set the megamenu width to full width so that it automatically adapts to the page. If I set the menu item property to default, the menu will break as in screenshot 1, if I set it to full-width, the megamenu will be 800px wide. I want to achieve what is on screen 2
Attachments:
You must be logged in to view attached files.July 2, 2024 at 11:48 am #577014
Aizaz Imtiaz AwanKeymasterHello,
Navigate to Appearance > Widgets > Expand Menu Items and set the drop down design “Set Sizes” and define the width in the pixels.
Best Regards.
July 2, 2024 at 12:05 pm #577024
tommygainwickParticipantYes, but i want it to be responsive like 80% not static is it possible to do?
July 2, 2024 at 1:59 pm #577058
Aizaz Imtiaz AwanKeymasterHello,
What do you mean responsive not static?
Best Regards.
July 2, 2024 at 3:20 pm #577088
tommygainwickParticipantStatic mean in css width will be set for example to 900px, i want set it to be responsive, for example if i open IT on 1000px monitor width will be set to 800px if i open it on 2000px monitor width will be set to 1600px. I want make this auto adjustable
July 2, 2024 at 3:22 pm #577089
tommygainwickParticipantLike i schowed it on screen 2 i alwas want it to be this red box, no matter on witch monitor i will be opening it
July 3, 2024 at 10:16 am #577302
Aizaz Imtiaz AwanKeymasterHello,
Try to add the code below into the “Global Custom CSS” area in Theme Settings -> Custom CSS.
/* Default mega menu width */ .wd-nav-vertical .wd-dropdown-menu:is(.wd-design-full-width,.wd-design-aside) { --wd-dropdown-width: 80%; /* Set a default width percentage */ } /* For screens wider than 1000px */ @media (min-width: 1000px) { .wd-nav-vertical .wd-dropdown-menu:is(.wd-design-full-width,.wd-design-aside) { --wd-dropdown-width: 800px !important; } } /* For screens wider than 2000px */ @media (min-width: 2000px) { .wd-nav-vertical .wd-dropdown-menu:is(.wd-design-full-width,.wd-design-aside) { --wd-dropdown-width: 1600px !important; } }
This code sets the default width to 80% of the container width, then overrides it with specific pixel values for screens wider than 1000px and 2000px. You can adjust the percentages and pixel values as needed to suit your design.
Best Regards.
-
AuthorPosts
Tagged: woodmart megamenu auto width
- You must be logged in to create new topics. Login / Register