Hello! I want to change color for add to card button to #8545FF, but when i do that, other buttons on the page change colors aswell. Im not really familiar with coding, so could someone please help changing color of the button? Thanks!
Sorry you are facing this issue, it would be my pleasure to help you.
Welcome to the Shopify community!
Thanks for your good question.
Please share your site URL,
I will check out the issue and provide you a solution here.
@Visiongenic please share your store URL and password(If it is password protected.). So that I can check and give you the exact solution.
Hi @Visiongenic ,
Please send your site and if your site is password protected, please send me the password. I will check it.
Welcome to shopify community.
Please share your store URL and if your store is password protected then please provide password too.
Thank you.
Hi @Visiongenic
Go in to your theme.css file and find this (ctrl + f = search)
.ca-select {
text-align-last: center;
background-image: none !important;
}
Replace that with this code:
.ca-select {
text-align-last: center;
background-image: none !important;
background: #8545ff;
color: #fff;
}
If this help you, let me know.
Hi @Visiongenic ,
Go to Assets > theme.scss.liquid and paste this at the bottom of the file:
.dbtfy-collection_addtocart .btn-outline-primary {
border-color: #8545ff;
color: #8545ff;
}
Hope it helps!
hey , i cant find the theme.css button and i tried to find the code in theme.liquid and theme.scss.liquid but couldn’t find it there also
Hi @Visiongenic ,
Sorry, I don’t understand what you mean. I checked and the code was added successfully, everything is showing fine.
Or do you want this?
Please change code:
.dbtfy-collection_addtocart .btn-outline-primary {
border-color: #8545ff;
background-color: #8545ff;
color: #ffffff;
}
Hope it helps!