All things Shopify and commerce
Hi, i am trying to change the width my my mega menu and maybe center the column's in it (not just center the text).
Any help appreciated 🙂
saucypeach.com
P/W: Password
Solved! Go to the solution
This is an accepted solution.
Oh, Sorry for that. Replace on this code then.
Same Instruction.
.megamenu.row.grid__wrapper {
max-width: 100% !important;
width: 100%;
margin: auto;
left: 0;
}
span.span-12.auto.megamenu__list-container {
width: fit-content;
justify-self: center;
}
And Save.
Result:
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Hi @SaucyPeach
Check this one.
From you Admin page, go to Online Store > Themes
Select the theme you want to edit
Under the Asset folder, open the main.css(base.css, style.css or theme.css)
Then place the code below at the very bottom of the file.
.megamenu.row.grid__wrapper {
max-width: 100% !important;
width: 100%;
margin: auto;
left: 0;
}
.span-12.auto {
width: fit-content;
justify-self: center;
}
And save.
Result:
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
this is the exact result I'm looking for but it centers the 'sort by' and 'filter' boxes as well as the payment icons in the footer.
Is there a way around this?
This is an accepted solution.
Oh, Sorry for that. Replace on this code then.
Same Instruction.
.megamenu.row.grid__wrapper {
max-width: 100% !important;
width: 100%;
margin: auto;
left: 0;
}
span.span-12.auto.megamenu__list-container {
width: fit-content;
justify-self: center;
}
And Save.
Result:
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Hello @SaucyPeach
Go to online store ---------> themes --------------> actions ------> edit code------->assets-----> stylesheet.css
add this code at the end of the file.
a.navigation__menulink.js-menu-link.is_upcase-true {
padding: 0 50px !important;
}
result
If this was helpful, hit the like button and accept the solution.
Thanks
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024