Shopify themes, liquid, logos, and UX
Hi!
I've just added mega menus to my site (parmagroup.co.uk) - but I don't like how everything is aligned left. What code do I need and where do I need to put it to align these options to the center of the page?
I've tried using what little there is out there on this already in the theme.liquid, theme.css and meganav-standard.liquid but can't get it right!
I'd appreciate any help!
Solved! Go to the solution
This is an accepted solution.
Hello @BethParma
You can add code by following these steps
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file
3. Paste the below code before </body> on theme.liquid
<style>
.navmenu-meganav-wrapper {
justify-content: center;
}
</style>
my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.
This is an accepted solution.
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file
3. Paste the below code before </head> on theme.liquid
<style>
.navmenu-meganav-wrapper {
justify-content: center!important;
}
</style>
Result:
B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.
B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.
B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.
BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now
This is an accepted solution.
Hello @BethParma
You can add code by following these steps
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file
3. Paste the below code before </body> on theme.liquid
<style>
.navmenu-meganav-wrapper {
justify-content: center;
}
</style>
my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.
Ah amazing, thank you so much for your help!!
This is an accepted solution.
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file
3. Paste the below code before </head> on theme.liquid
<style>
.navmenu-meganav-wrapper {
justify-content: center!important;
}
</style>
Result:
B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.
B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.
B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.
BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now
Hello @BethParma
Go to online store ---------> themes --------------> actions ------> edit code------->theme.css
at the end of the file and save.
.navmenu-meganav-wrapper.navmenu-meganav-standard__wrapper {
justify-content: center !important;
}
result
If this was helpful, hit the like button and accept the solution.
Thanks
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025