All things Shopify and commerce
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
My shopify website has a footer menu (yellow in the screenshot) that doesn't stay centered and aligned on mobile. Tried different solutions but didn't work.
Please help me with the code and where exactly to paste it in my theme.liquid file?
Hey @blublu
Your store is password protected, can you share the password as well?
Best Regards,
Moeed
saghoo
Hi @blublu
It password protected.
Can you help me with a code modification to make the menu centered on desktop, without changing my mobile code? Thank you
Sure, check check this one.
From your Shopify admin dashboard, click on "Online Store" and then "Themes"
Find the theme that you want to edit and click on "Actions" and then "Edit code".
In the "theme. Liquid" file. Find the </body> tag and paste the code below before the tag.
<style>
@media screen and (min-width: 990px) {
.header-wrapper .header--middle-left {
grid-template-columns: 1fr auto 1fr;
}
}
</style>
And Save.
result:
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!