Home>Support>Change button color after click

Change button color after click

Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].

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. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 3 years, 2 hours ago Andrew Misplon
    Hi, I Work Here

    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. 3 years, 36 minutes ago yourbizgo

    Yes any add to cart button at kmshooting.com

  3. 2 years, 11 months ago Andrew Misplon
    Hi, I Work Here

    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. 2 years, 11 months ago yourbizgo

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

  5. 2 years, 11 months ago Andrew Misplon
    Hi, I Work Here

    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.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More