Hello,
Does anyone know how to make my add to cart button rounded? Maybe by 20px?
I would also like to extend it a little.
URL: https://www.samiyaskincare.com.au/products/throat-chakra-face-oil
A Shopify store owner seeks help rounding the “Add to Cart” button corners (20px border-radius) and extending its width on desktop.
Initial Solutions Provided:
base.css or component-card.css files.product-form__buttons button with border-radius: 20px !importantFollow-up Requests:
The original poster requested additional modifications:
Additional Solutions:
theme.liquid file above </head> tagCurrent Status:
The popup centering issue is resolved. The discussion remains open with the latest request for centering product details on mobile awaiting response.
Hello,
Does anyone know how to make my add to cart button rounded? Maybe by 20px?
I would also like to extend it a little.
URL: https://www.samiyaskincare.com.au/products/throat-chakra-face-oil
Hi @ellacoker
You can try to follow this step
Step 1: Go to Edit code
Step 2: Find file base.css and add this code at the end of the file
.product-form__buttons button::after,
.product-form__buttons button::before,
.product-form__buttons button {
border-radius: 20px !important;
}
Result
Best,
Daisy
Hi @ellacoker , you can follow these steps:
Step 1: Open Online Store → Themes → Edit code.
Step 2: Find component-card.css file
Step 3: Paste this code at the bottom of the file
.product-form__buttons > button.button,
.product-form__buttons > button.button::before,
.product-form__buttons > button.button::after {
border-radius: 20px !important;
}
If this is helpful, please let us know by giving us a like and marking it as a solution. Thank you ![]()
Thank you,
do you know how to
also extend the button on desktop? the mobile width is fine. please see image
centre the pop up text “click to reveal secret ingredient” on mobile
Hello Ella @ellacoker I think you should give this code a try and let me know how the button appears in your store afterwards.
}
button.btn.btn–full.add-to-cart {
border-radius: 78px !important;
}
Hi @ellacoker ,
Paste this code at the bottom of the file:
.product-form__buttons {
max-width: unset !important;
}
@media screen and (max-width: 749px) {
.product-popup-modal__opener.quick-add-hidden {
width: 100% !important;
text-align: center !important;
}
}
If this is helpful, please let us know by giving us a like and marking it as a solution. Thank you ![]()
Hi @ellacoker
This is Richard from PageFly - Shopify Page Builder App
Please add this code to your theme.liquid above the to get this solved
Step 1: Online Stores > Themes > More Actions > Edit code
Step 2: click on theme.liquid and paste the code above the
Hope this can help you solve the issue
Best regards,
Richard | PageFly
Hello,
Thank you so much. My pop up is now centred. Can I add something to also make my product description, price and heading all centred too on mobile only?