Site logo

Archived topic

Update cart button color not as per configuration

5 replies · Started by Andreas on March 2, 2021

Viewing posts 1–6 of 6

I use Generatepress Pro and changed the default colors of the Woocommerce buttons. Everything works fine but the 'update card' button doesn't display the right colors.

Hi Andreas,

The "disabled" button requires a bit of CSS:

.woocommerce button.button:disabled, .woocommerce button.button:disabled[disabled] {
    background-color: #000000;
    opacity: 1;
}

Adding CSS: https://docs.generatepress.com/article/adding-css/

Let me know if this helps :)

Hi Leo
Worked but now the hover colors are no more the ones I configured. Could you provide me the CSS snipped for configuring the hover efects as well.
Thanks.
Andreas

Hi there,

try adding this for the hovers:

.woocommerce button.button:disabled:hover, .woocommerce button.button:disabled[disabled]:hover {
    background-color: #000000;
    opacity: 1;
}

Worked perfectly. Thank you very much.

You're welcome

This archived topic is closed to new replies.