This topic has 8 replies, 3 voices, and was last updated 7 years, 2 months ago ago by Rose Tyler
Hi,
The color of the ‘add to cart’ button is now black. How can I change it so it is the same as the ‘main color’?
Thanks, Ton.
Hi,
add this css code in 8theme options > styling > custom css > global custom css
.cart-bag, .cart-bag:before { border: 1px solid #fff; }
change the color code to your ‘main color’ code
Regards,
Hi Amzy,
Sorry if I was not clear enough.
I meant these buttons: https://prnt.sc/gncjbz
Is that possible?
Would it not be nicer if they have the same color as a ‘main color’?
Thanks again, Ton
Hello,
Please try to change previous code to:
button.add_to_cart_button.ajax_add_to_cart.single_add_to_cart_button.button.alt {
background-color: #ae9a64;
border-color: #ae9a64;
}
.single_add_to_cart_button:hover {
background-color: rgb(187, 173, 136) !important;
border-color: rgb(187, 173, 136) !important;
}
.view-color-dark .button, .view-color-dark .show-quickly, .view-color-dark .yith-wcwl-add-button a.add_to_wishlist {
background-color: #ae9a64;
}
.view-color-dark .yith-wcwl-add-button a.add_to_wishlist, .view-color-dark .show-quickly {
border-color: #a79155;
}
.view-color-dark .button:hover, .view-color-dark .show-quickly:hover, .view-color-dark .yith-wcwl-add-button a.add_to_wishlist:hover {background-color: rgb(187, 173, 136) !important;}
Regards
Hi Rose,
Almost there 🙂
On the single productpage the ‘add to cart’ remains black.
Only when you hover you see the desired color.
By the way: you even looked up the right color code! Very much appreciated.
Thanks, Ton.
Please, clear cache and check http://prntscr.com/gndbg8.
Regards
Fabulous Rose,
You make me happy. Again.
Cheers, Ton
You’re welcome!
Regards
Tagged: add to cart, color, templates, woocommerce, wordpress
You must be logged in to reply to this topic.Log in/Sign up