Shopify themes, liquid, logos, and UX
This is an accepted solution.
Hi @GediminasS
{% style %}
@media screen and (max-width: 768px){
.mega-menu-sidebar--content > ul.sub-menu > li > a span {
margin-inline: auto !important;
}
}
{% endstyle %}
This is the code for mobile
Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!
Hi @GediminasS
Thank you for reaching out to the Shopify community. I'd be glad to assist you. Could you kindly share your store URL and password (if it’s password-protected) so I can review it and provide you with an update?
Hi @GediminasS
I hope you are well. You can follow our instructions below:1/ Shopify admin > Online store > Edit code: https://prnt.sc/M4p-gua99Uf4
2/ Search for "theme.liquid" file: https://prnt.sc/b6xveIKe-Rh2
3/ Open the file and search for </head> tag and add the following code above </head> tag: https://prnt.sc/KWtKYyZkDtYJ
Here is the code for Step 3:
{% style %}
.mega-menu-sidebar--content > ul > li > a > span {
text-align: center !important;
}
{% endstyle %}
Please let me know if it works. Thank you!
Best,
Daisy - Avada Support Team
Hi,
thanks for this. It did worked on PC, how do we do that on mobile as well?
This is an accepted solution.
Hi @GediminasS
{% style %}
@media screen and (max-width: 768px){
.mega-menu-sidebar--content > ul.sub-menu > li > a span {
margin-inline: auto !important;
}
}
{% endstyle %}
This is the code for mobile
Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!
Thank you!
Hello @GediminasS,
Could you please provide the URL/ password to your store so that I can check it and provide you with the exact solution?
Learn 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, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025