Home › Forums › WoodMart support forum › Change button color cart
Change button color cart
- This topic has 7 replies, 2 voices, and was last updated 1 year, 7 months ago by Elise Noromit.
-
AuthorPosts
-
September 19, 2022 at 9:26 pm #407075
s0mbrer0ParticipantHi! How can we change the button color in the cart. See picture. So only the red button needs to have another color (other buttons on shop don’t have to change).
Attachments:
You must be logged in to view attached files.September 20, 2022 at 4:33 am #407118
Elise NoromitMemberHello,
Please add this code to the Theme Settings > Custom CSS > Global:
.woocommerce-mini-cart__buttons .btn-cart { border-radius: var(--btn-default-brd-radius); color: var(--btn-default-color); box-shadow: var(--btn-default-box-shadow); background-color: var(--btn-default-bgcolor); }
Please set the color as per your needs.
Best Regards
September 20, 2022 at 10:42 pm #407463
s0mbrer0ParticipantThank you for your reply. Can you also give me the code if we want the button to have a black border with a solid line. Black text and white background color. And on hover we want also another color.
September 21, 2022 at 2:25 am #407484
Elise NoromitMemberHello,
You will need this code:
.woocommerce-mini-cart__buttons .btn-cart { color: black; background-color: white; border:2px solid black; }
If you have any questions please feel free to contact us.
Best Regards
September 21, 2022 at 10:34 am #407551
s0mbrer0ParticipantThank you Elise! And how can I change the hover color?
September 22, 2022 at 5:39 am #407823
Elise NoromitMemberHello,
Add this code:
.woocommerce-mini-cart__buttons .btn-cart:hover { color: black; background-color: white; border:2px solid black; }
Best Regars
September 22, 2022 at 11:33 am #407870
s0mbrer0ParticipantIt works perfectly! Thank you for the support.
Another question can you please tell me how to change the color of these two buttons in the cart page? So also the code for border color, background color and hover color.
Attachments:
You must be logged in to view attached files.September 24, 2022 at 3:53 am #408250
Elise NoromitMemberHello,
Please add this code to the Theme Settings > Custom CSS > Global:
.cart-actions .button[name="apply_coupon"] { color: black; background-color: white; border:2px solid black; } .cart-actions .button[name="apply_coupon"]:hover { color: green; background-color: white; border:2px solid black; } .cart-actions .button[name="update_cart"] { color: black; background-color: white; border:2px solid black; } .cart-actions .button[name="update_cart"]:hover { color: green; background-color: white; border:2px solid black; }
Best Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register