Button State colors

Hi,

How do I change the default and .hover colors of the woocommerce and all other buttons on my website.

regards,
Shahidul

Website Page

Hi Shahidul,

Thank you for your question.

You can try achieving this by adding the following CSS code in the Custom CSS option of your theme on the below path.

Admin Area -> Appearance -> Customize -> Shapely Options -> Other

#page .btn-filled:hover, #page .btn:visited:hover, #page .btn:hover {
    background: #d78647;
    border-color: #d78647;
}

Please change the color value in the above code to whatever you want to use by referring the following pages.

http://www.w3schools.com/html/html_colors.asp
http://www.w3schools.com/html/html_colorvalues.asp
http://www.w3schools.com/tags/ref_colorpicker.asp

Best Regards,
Movin

Hi Movin,

Worked great.

Thanks

Hi Movin,

I’ve had a look through and it seems the code is not working 100%. It is not affecting the add to cart button on all product pages.

Example

Please use the below CSS code instead to make it work on that page.


#page .btn-filled:hover, 
#page .btn:visited:hover, 
#page .btn:hover,
#page button:hover {
    background: #d78647 !important;
    border-color: #d78647 !important;
}

Hi Movin,

Thank you.

You are most welcome here :slight_smile: