Support » Plugin: WooCommerce » Add to Cart Background Color CSS

  • Resolved regerman926


    I am using the following CSS to change the background color for the “add to cart button” in WooCommerce, but the color is not changing:

    .woocommerce .cart .button, .woocommerce .cart input.button {
    float: none;
    color: white;
    background-color: purple !important;

    I am not familiar with CSS and ask anyone for guidance as to what needs to be changed to make it work. I want to change the background to #660066.

    Thanks in advance for your assistance.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Senff – a11n


    Hey @regerman926

    Try this code instead:

    .wp-block-button__link.add_to_cart_button {
      background-color: #660066;
    Plugin Support Con a11n


    Automattic Happiness Engineer

    Hi there,

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

    Kind regards,

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add to Cart Background Color CSS’ is closed to new replies.