Shopify themes, liquid, logos, and UX
I managed to change the add to cart button but it affected all add to cart buttons on my store.
how can I solve that?
Hi, @orhl1234
Can you share your store url?
Hello @orhl1234
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>
.product-form__buttons .button.product-form__submit {
background: blue !important; /*change color according to you*/
}
</style>
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
its working but is that fine?
Yes, but when you add background white then you have to change the button text color also.
.product-form__buttons .button.product-form__submit {
color: #000 !important;
}
Add This Css in your open Edit code > base.css File
product-form.product-form .product-form__submit{
background: #000;
color: #fff;
}
If you require further help to optimize your store, please don’t hesitate to reach out.
This contribution will always benefit you and you will get my full help easily and you can contact me easily.
Contect On My Mail :-Mail@gmail.com
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024