Shopify themes, liquid, logos, and UX
Hello,
I would like to customize the size of my add to cart button to match my widgets next to it, so everything looks clean.
( ^ Here is how it looks now, it is slightly shorter than the one above and below. I want it to match the size, no matter the screen size that it is being viewed from)
Store: artisimo.es
pass: pongia
Solved! Go to the solution
This is an accepted solution.
Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code
Step 2: Search file theme.liquid
Step 3: Insert this code above </head>
<style>
.product-form__buttons {
max-width: unset!important
}
</style>
Result:
If it helps you, please like and mark it as the solution.
Best Regards😊
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.
Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code
Step 2: Search file theme.liquid
Step 3: Insert this code above </head>
<style>
.product-form__buttons {
max-width: unset!important
}
</style>
Result:
If it helps you, please like and mark it as the solution.
Best Regards😊
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
Thanks!
Hi there 🙂
You have this CSS rule that is setting a max-with for product form buttons:
.product-form__buttons {
max-width: 44rem;
}
Just remove that line, so the button grows the full available width:
If you don't have access to that piece of code and can't remove it, then you'll need to add this custom CSS to your theme to overwrite it:
.product-form__buttons {
max-width: 100% !important;
}
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