1. Home
  2. Knowledge Base
  3. Customizations
  4. CSS
  5. How to Change the Background Color of the Apply Coupon Code Button on the WooCommerce Cart Page

How to Change the Background Color of the Apply Coupon Code Button on the WooCommerce Cart Page

Introduction

By default, there is no built-in option to change the Apply Coupon Code button background color on the WooCommerce cart page. Using a CSS snippet, you can update the button color to match your site’s design or branding.

Custom Workaround

Follow the steps below to change the background color:

  1. Go to BuddyBoss > Theme Options
  2. Under Custom Codes, enable CSS
  3. Append the following code:
.coupon button.button { 

    background: #007CFF !important; /* Change #007CFF to your preferred color */

}
  1. Save changes.

Note: Any modifications are considered custom work already. Know more about our Support policy here: https://buddyboss.com/support-policy/

Troubleshooting and FAQs

Q: The button color didn’t change. What should I do?

A: Clear your site cache and browser cache. If it still doesn’t update, submit a ticket to the support team.

Q: Can I change the hover color of the button as well?

A: Yes. Add a CSS snippet like this:

.coupon button.button:hover { 

    background: #005BBB !important; 

}

Q: Will this affect other buttons on my site?

A: No. This snippet targets only the Apply Coupon button on the cart page.

Q: Can I use a gradient instead of a solid color?

A: Yes. Replace background with a gradient, for example:

.coupon button.button { 

    background: linear-gradient(to right, #007CFF, #005BBB) !important; 

}

Screenshots

Without code

With code

Was this article helpful?

Related Articles

Subscribe to Our Newsletter

Stay In Touch

Subscribe to our Newsletter, and we’ll send you the latest news from BuddyBoss

This field is for validation purposes and should be left unchanged.
This field is hidden when viewing the form

To speak to our Agency consultant, fill in the form found at our Contact Page.