This topic has 18 replies, 3 voices, and was last updated 10 years ago ago by Eva Kemp
Hi guys,
I’ve been trying for a day to change the color on the add to cart button, i managed to change the font size but the color is not working in the custom css.
These are the buttons i want to change color on and remove hover function.
– Change color on “CHECKOUT” button on the cart page and the cart in the header.
– Change color on “add to cart” in the product page
– Change color on “Place order” on the checkout page.
– Change font size on “place order” and make the button width wider on the checkout page.
My hex value is: #00b200
Thanks i advance.
Hello,
Do you want to change background color of the buttons or font color of the text in the buttons?
Please provide us a link to your site.
Thank you.
Regards,
Eva Kemp.
Hi,
Thanks for the quick answer.
I want to change the background color.
Also is there a way to quicky hide the produkt description on the product page were you can back and forth to the products?
Hello,
Please add following code into custom.css file.
.single_add_to_cart_button,
.btn.filled.active,
.btn.filled:hover,
.button.big{
background:#00b200;
}
.button.big{
padding: 0 50px !important;
font-size:16px;
}
Here is a video tutorial how to create custom.css: https://www.youtube.com/watch?v=Qok2zRedRMY&feature=youtu.be.
Regards,
Robert Hall.
Hi,
It works perfect, however, when you move the pointer on the buttom it still hovers to this golden color.
Also the Checkout button on the cart page & on the header hasn’t changed color, still black 🙂
Also add this code.
.shopping-container .btn.border-grey,
.shopping-container .btn.border-grey:hover,
.btn.filled,
.checkout-button{
background:#00b200;
}
Regards,
Robert Hall.
Thank you a lot.
The view cart button became green as well though, not my intention 🙂
You’re welcome! Please replace that code
.shopping-container .btn.border-grey,
.shopping-container .btn.border-grey:hover,
.btn.filled,
.checkout-button{
background:#00b200;
}
to
.btn.filled,
.checkout-button{
background:#00b200;
}
Regards,
Robert Hall.
Hi,
I just updated the code, please take a look at the shop (sent the url in private, still shows green on both if you add a product to the cart and move the pointer to the cart in the header)
Now green color has only one button. Look at screenshot: http://prntscr.com/5fc8f9
Do you want to remove green color from second button?
Regards,
Robert Hall.
Hi Robert,
No it’s perfect! Thank you so much, you saved me hours of work. I just forgot to clear my cache so everything looked green for some reason.
Last thing, please don’t hate me, how do i remove the black line in the green button? There is a black line around it 🙂
Try to add this code.
.btn.filled{
border-color: #00b200;
}
Regards,
Robert Hall.
Hi Robert,
Thanks for everything.
God bless.
Hello,
You’re welcome!
We will be very grateful if you could leave a rating for our theme and your review.
http://themeforest.net/item/royal-multipurpose-wordpress-theme/8611976
Regards,
Robert Hall.
Hi Robert,
I have commented and voted 5 stars as you guys deserve.
Robert, is there an easy way to hide The product description in the product page? http://prntscr.com/5fk3eu? Can it be hidden with CSS? I have tried, but didn’t work well 🙂
Thank you!
Please add following code into custom.css file.
.product-information .short-description{
display:none;
}
Regards,
Robert Hall.
Hi robert,
That removed the description completely, i just wanted to remove the following: http://prntscr.com/5fkf8q
Hello,
Please add this code in custom.css:
.meta-title { display: none !important; }
Thank you.
Regards,
Eva Kemp.
The issue related to '‘Change add to cart colorand remove hover’' has been successfully resolved, and the topic is now closed for further responses