Title: Changing button color
Last modified: December 22, 2021

---

# Changing button color

 *  Resolved [sanjas](https://wordpress.org/support/users/sanjas/)
 * (@sanjas)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/changing-button-color-8/)
 * Hi,
 * is there a way to change color of a button in the code dispatch email?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Juan Coronel](https://wordpress.org/support/users/juaancmendez/)
 * (@juaancmendez)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/changing-button-color-8/#post-15188763)
 * Hi there,
    we hope you’re doing well!
 * In order to achieve what you need, you have to copy the _**style.css**_ file 
   located in **wp-content\plugins\yith-woocommerce-gift-cards\templates\emails\**
   and paste it in **wp-content\themes\[your active theme folder]\woocommerce\emails\**.
   If you don’t have the woocommerce and/or emails folders, you must create them.
   Then, in the file that you have pasted, you must modify the following CSS rule
   to be able to change the color of the button:
 *     ```
       .ywgc-discount-link {
           color: white;
           font-weight: 700;
           text-decoration: none;
           background-color: #557da1;
           display: inline-block;
           padding: 8px 15px;
           border-radius: 5px;
           text-transform: uppercase;
           font-size: 13px;
       }
       ```
   
 * There, to change the background color of the button, you must modify the attribute“
   background-color”, and to change the color of the text, the attribute “color”.
   For example:
 *     ```
       color: black;
       background-color: yellow;
       ```
   
 * Try it and tell us any questions.
 * Have a nice day!
 *  Thread Starter [sanjas](https://wordpress.org/support/users/sanjas/)
 * (@sanjas)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/changing-button-color-8/#post-15193277)
 * Hi Juan,
 * thanks for your reply. It worked perfectly.
 * Have a nice day!
 *  [Juan Coronel](https://wordpress.org/support/users/juaancmendez/)
 * (@juaancmendez)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/changing-button-color-8/#post-15194050)
 * Hi there,
 * Perfect! We are glad to have helped you :). We will mark this topic as resolved.
 * Have a nice day!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Changing button color’ is closed to new replies.

 * ![](https://ps.w.org/yith-woocommerce-gift-cards/assets/icon-256x256.gif?rev=
   3227932)
 * [YITH WooCommerce Gift Cards](https://wordpress.org/plugins/yith-woocommerce-gift-cards/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yith-woocommerce-gift-cards/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yith-woocommerce-gift-cards/)
 * [Active Topics](https://wordpress.org/support/plugin/yith-woocommerce-gift-cards/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yith-woocommerce-gift-cards/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yith-woocommerce-gift-cards/reviews/)

## Tags

 * [email](https://wordpress.org/support/topic-tag/email/)
 * [gift card](https://wordpress.org/support/topic-tag/gift-card/)

 * 3 replies
 * 2 participants
 * Last reply from: [Juan Coronel](https://wordpress.org/support/users/juaancmendez/)
 * Last activity: [4 years, 5 months ago](https://wordpress.org/support/topic/changing-button-color-8/#post-15194050)
 * Status: resolved