Skip to content

Instantly share code, notes, and snippets.

@tuanbbhero
Last active January 27, 2019 23:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tuanbbhero/f308d1bad052dafcc2d092a1e1a2118c to your computer and use it in GitHub Desktop.
Save tuanbbhero/f308d1bad052dafcc2d092a1e1a2118c to your computer and use it in GitHub Desktop.
Styling WooCommerce Add to Cart Button: text color, background color, font style, radius,... Created by Tuan (Beaverhero.com)
/* Insert below css into Custom CSS or Addtional CSS, not insert style.css */
/* change background, color, font.... to what you want */
/* You can use Color Name or Color Code. Check color-hex.com to see over 500 Color Code */
.woocommerce button.button.alt {
background: red;
color: white;
font-size: 20px;
font-weight: 300;
font-family: "Helvetica", sans-serif;
border-radius: 10px;
border: 5px solid green;
}
/* Add to Cart when hovering */
.woocommerce button.button.alt:hover {
background: violet;
color: black;
border-color: yellow;
}
/* This is CSS for QUANTITY BOX */
.woocommerce .quantity .qty {
border-radius: 10px;
height: 50px;
width: 100px;
background: #f1f1f1;
color: green;
font-size: 30px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment