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;
}
Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025