Shopify themes, liquid, logos, and UX
i want to center align my buy now and add to cart button to center in desktop version
Hello @zenost07
Welcome to Shopify Community.
Please paste the CSS in theme.liquid file above </head> tag.
<style>
.product-form .product-form__buttons {
margin: 0 auto;
}
</style>
OUTPUT:
Thanks
This is Noah from PageFly - Shopify Page Builder App
You can fix it by add code here to the end file base.css:
.product-form__buttons{
margin: auto !important;
}
Hope my solution will help you resolve the issue.
Best regards,
Noah | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
PageFly - #1 Page Builder for Shopify merchants.
All features are available from Free plan. Live Chat Support is available 24/7.
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