This topic has 10 replies, 3 voices, and was last updated 7 years, 9 months ago ago by Rose Tyler
How do I change the add to cart button? I want to change the color.
Hello,
I have added the following code in child theme style.css
.product-content .single_add_to_cart_button{
background-color: #ca3110;
border-color: #ca3110;
}
.product-content .single_add_to_cart_button:hover{
background-color: #9e2c13 !important;
border-color: #9e2c13 !important;
}
You can change the color if you want another.
Regards
wow, thanks Olga. you people are so nice over there
Hello,
You are welcome! Feel free to ask if you need any help.
Regards
Hi. I’m trying to copy your code to change the “checkout”, “update cart” and “proceed to checkout” button, but I’m messing it up. Help please.
Hello,
Please, use this code:
.widget_shopping_cart_content .btn-checkout.wc-forward {
background-color: #ca3110;
border-color: #ca3110;
}
.widget_shopping_cart_content .btn-checkout.wc-forward a:hover {
background-color: #9e2c13 !important;
border-color: #9e2c13 !important;
}
.woocommerce-cart .actions .btn.gray{
background-color: #ca3110;
border-color: #ca3110;
}
a.checkout-button.button.alt.wc-forward {
background-color: #ca3110;
border-color: #ca3110;
color:white;
}
a.checkout-button.button.alt.wc-forward:hover{
background-color: #9e2c13;
border-color: #9e2c13;
color:white;
}
Regards
Thank you for the codes. I feel bad for asking for these codes because I want to learn the css. However, I am having difficulty finding the proper names to use in the css code.
Now I would like to change the “proceed to PayPal” button at checkout because it’s all white and invisible.
Also, in the orders section, the “go shop” is barely visble in gray, and white in hover.
Can you print screen the element area where you get the names from? I want to learn how you compose the css code.
Thanks
Hello,
You can use developer tools to inspect elements, for example https://developer.chrome.com/devtools http://prntscr.com/e92n1r https://developers.google.com/web/tools/chrome-devtools/iterate/inspect-styles/
.woocommerce-checkout-review-order #place_order {
background-color: black;
border-color: black;
}
.woocommerce-message .button {
background-color: black;
}
.woocommerce-message .button:hover {
background-color: black;
}
Regards
Thank you Rose. I’m going to reverse engineer what you just did.
I’m still having trouble changing the color of the “go shop” button in the orders section of my account.
Hello,
Oh I see, please, use this code:
.woocommerce-MyAccount-content .woocommerce-Button {
background-color: black;
border-color: black;
}
.woocommerce-MyAccount-content .woocommerce-Button:hover {
background-color: black;
border-color: black;
}
Regards
You must be logged in to reply to this topic.Log in/Sign up