Shopify themes, liquid, logos, and UX
We would like to change only the add-to-cart button color without changing the Accent 1 background color. Any help is appreciated.
Solved! Go to the solution
This is an accepted solution.
Hi again,
You can add the code to Custom CSS section to change the color of icon on mobile:
@media (max-width: 991px) {
.product-form .cartmobile {
background-color: #df2c21;
}
}
Hi @fukuyafoods,
Can you send me the page link that contains that button that you want to change please?
Thank you
Hi Liz,
Thank you for your reply.
https://fukuya.ca/products/syukaen-shine-muscat-grapes?variant=46025777250563
This is the product page we want to change the color of the add to cart button. Also on the home page as well.
https://fukuya.ca/
Thanks
Hi @fukuyafoods,
1. You can follow the instruction here to change your button color in Product page:
- Go to Shopify > Theme > Customize > open Custom CSS
- Copy and paste this code to the section > Save. You can change the color code as the color you want.
.product__info-container .product-form__buttons .button--primary {
background-color: #678889;
box-shadow: none;
}
2. To change the button on Homepage, you can copy this code and paste to the Custom CSS section as well:
.button, .shopify-challenge__button, .customer button, .wbproducttab .spr-container .spr-summary-actions-newreview {
background-color: #678889;
}
I hope it helps.
Hi Liz,
Thank you for your help. I've changed the color of the Add to cart button on the product page.
Is there a way to also change the color of add to cart botton (or icon on mobile) on my home page and collection main page as well?
https://fukuya.ca/collections/bluefin-tuna
www.fukuya.ca
Thanks.
Hi @fukuyafoods,
To change the Add to cart button on Collection page, you can add this code on Custom CSS section:
.button, .shopify-challenge__button, .customer button, .wbproducttab .spr-container .spr-summary-actions-newreview {
background-color: #823c3c;
}
Hi Liz,
Thank you so much again for your help. Just one last thing how do I change just the add to cart icon on mobile? Its showing the original color. Thanks.
This is an accepted solution.
Hi again,
You can add the code to Custom CSS section to change the color of icon on mobile:
@media (max-width: 991px) {
.product-form .cartmobile {
background-color: #df2c21;
}
}
Thank you so much for your help! 😊
Hi Liz,
I noticed the "subscribe" to news letter button on home page is also changed into red. Can we reverse it to original?
Also, there's a black outline to all the red add to car buttons. Is it possible to remove it or change it to the same red color that we currently have?
Much appreciate for all your help.
Hi @fukuyafoods
You can change the color of subscribe button by adding these codes to Custom CSS section. You can change it to the color that you want.
- For Desktop:
@media (min-width: 992px) {
.newsletter-form__field-wrapper .button {
background-color: #ffff;
}
}
- For Mobile:
@media (max-width: 767px) {
.newsletter-form__field-wrapper .button {
background-color: #ffff;
}
}
Hi Liz,
Thank you for your prompt reply.
Also, there's a black outline to all the red add to cart buttons. Is it possible to remove it or change it to the same red color that we currently have?
Thanks
Hi @fukuyafoods ,
So sorry for the late reply. You can use this code to remove the outline of the Add to cart button.
.product_info-container .product-form_buttons .button--primary::after {
display: none !important;
}
Hi Liz,
It works! Thank you so much!
As 2024 wraps up, the dropshipping landscape is already shifting towards 2025's trends....
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024