This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Change button color after click

3 years ago · Last reply by Andrew Misplon 3 years ago

Hello all, I’m wondering why the following isn’t working to change button color after click:

.button.product_type_bundle.add_to_cart_button {
color: #000000;
background-color: #ffc439;
}

.button.product_type_bundle.add_to_cart_button:active {
color: #000000;
background-color: grey;
}

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

5
  1. Andrew Misplon Staff 3 years, 7 months ago

    Hi Yourbizgo

    Thanks for posting your question.

    Do you have a public URL where we can take a look at what’s going on?

  2. yourbizgo 3 years, 7 months ago

    Yes any add to cart button at kmshooting.com

  3. Andrew Misplon Staff 3 years, 7 months ago

    Thanks for the link. We, unfortunately, aren’t able to assist much with Custom CSS within our free scope. We can assist within our premium support scope where we have the budget. Try locating your rule in Custom CSS button.product_type_simple. You’ve used !important there. You can try using !important in your rules targeting the other button states.

  4. yourbizgo 3 years, 7 months ago

    Thanks for your help! It is working and I hadn’t even thought of adding the !important classification to those. Much appreciated!

  5. Andrew Misplon Staff 3 years, 7 months ago

    Glad to hear you’re making progress :)

    All the best with your site.

    Cheers

    Andrew

Replies on this thread are closed.

Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Have a different question or issue?

Start New Thread