This topic has 5 replies, 3 voices, and was last updated 8 years, 9 months ago ago by Eva Kemp
Hi, need to know the class of the add to cart button in home page, shop page and in single product page. I used the tool in chrome and it says .button. this class is for every button in the template. please hover and normal.
thanks.
Hello,
If you want to change text color for “Add to Cart” button use this code:
a.button.etheme_add_to_cart_button.product_type_simple {
color: red;
}
a.button.etheme_add_to_cart_button.product_type_simple:hover {
color: grey;
}
This is for home page and shop page.
For single product page use this code:
.single-product-page .product-info .single_add_to_cart_button {
color: #fff;
}
.single-product-page .product-info .single_add_to_cart_button:hover {
color: #000;
}
Best regards,
Jack Richardson.
What about the background color? thanks
got it thanks 🙂
Hello,
You’re welcome.
Regards,
Eva Kemp.
The issue related to '‘Add to cart button Styling using custum CSS’' has been successfully resolved, and the topic is now closed for further responses