Hi,
How to send the mega menu below or under the mega menu sub menus to under the title header like it shown in the reference image
url - https://jkv6etaxearo1rr6-88161681693.shopifypreview.com
A user seeks to reposition their mega menu’s submenus to appear below the header title, providing a reference image showing the desired layout.
Solutions Offered:
Two community members provided CSS-based solutions:
</body> tag in theme.liquid to modify menu positioningmain.css targeting specific menu classes with properties like display: flex, flex-flow: column, negative margins (-40rem, -21rem), and grid template adjustmentsCurrent Status:
The original poster requested the submenu display in a horizontal 3x3 layout (like the reference image). A revised CSS solution was provided adjusting grid-template-columns to repeat(3, minmax(0, 1fr)) and modifying margin values.
The discussion appears resolved, with the user accepting one of the solutions. Both helpers requested likes/solution marks for their contributions.
Hi,
How to send the mega menu below or under the mega menu sub menus to under the title header like it shown in the reference image
url - https://jkv6etaxearo1rr6-88161681693.shopifypreview.com
Hey @Shivam_Learning
Follow these Steps:
Go to Online Store
Edit Code
Find theme.liquid file
Add the following code in the bottom of the file above tag
RESULT:
If I managed to help you then, don’t forget to Like it and Mark it as Solution!
Best Regards,
Moeed
Hello @Shivam_Learning
Go to online store ---------> themes --------------> actions ------> edit code------->main.css
at the end of the file and save.
@media (min-width: 769px) {
.child-nav.md\:grid.md\:nav-gap-x-16.md\:nav-gap-y-4.md\:grid-cols-4.self-start.xl\:grid-cols-4 {
display: flex;
flex-flow: column;
align-items: center;
row-gap: 5px;
}
.mega-nav--columns .child-nav__item, .mega-nav--columns .main-nav__grandchild {
margin-left: -40rem;
margin-top: 23px;
}
}
result
If this was helpful, hit the like button and accept the solution.
Thanks
Hi thanks, The below menu should look horizontal 3x3 like the reference
Go to online store ---------> themes --------------> actions ------> edit code------->main.css
at the end of the file and save.
.main-nav__item.child-nav__item {
margin-left: -21rem !important;
margin-top: 35px !important;
}
.xl\:grid-cols-4 {
grid-template-columns: repeat(3,minmax(0,1fr));
}
}
result
If this was helpful, hit the like button and accept the solution.
Thanks
Thanks for accepting the solution
please hit like button also.