Shopify themes, liquid, logos, and UX
Hello! We would like to make the width of our add to cart buttons smaller, there is currently too much white space between the text and the boarder.
How do I do this?
Theme: Origin
Preview: https://pg7vhe5h6xc4t4nz-58489143504.shopifypreview.com
Hello @Sproud
You can add code by following these steps
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file
3. Paste the below code before </body> on theme.liquid
<style>
#shopify-section-template--16691831898320__e8bad23e-9086-460f-bcba-4d2022a7ddd3 .quick-add__submit {
max-width: 77% !important;
margin: 0 auto;
}
</style>
my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.
Hi @Sproud
Please add this code to Custom CSS in Online Store > Themes > Customize > Theme settings
.quick-add__submit {
min-width: 60% !important;
with: auto !important;
}
- Helpful? Like & Accept solution! - Support me? Buy me a coffee
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...Sign up now.
I get this error when trying to save?
So please add this code to theme.liquid file after <head> in Online store > Themes > Edit code
<style>
.quick-add__submit {
min-width: 60% !important;
with: auto !important;
}
</style>
- Helpful? Like & Accept solution! - Support me? Buy me a coffee
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...Sign up now.
Hello @Sproud
Go to online store ---------> themes --------------> actions ------> edit code------->base.css
at the end of the file and save.
.quick-add__submit {
min-width: 0;
}
.button--full-width {
width: 80%;
left: 30px;
}
result
If this was helpful, hit the like button and accept the solution.
Thanks
Hi @Sproud
1. In your Shopify Admin go to online store > themes > actions > edit code
2. Find Asset > base.css and paste this at the bottom of the file:
.quick-add__submit {
min-width: 70% !important;
width: auto !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