Shopify themes, liquid, logos, and UX
I'd like all 'checkout' and 'add to cart' buttons to be black background, white text on my site
Going through Customize > Theme Settings > Color does not affect these buttons for some reason.
Thanks in advance!
Solved! Go to the solution
This is an accepted solution.
Hi @walkermatter,
You can try this code by following these steps:
Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code
Step 2: Search file base.css, theme.css or styles.css
Step 3: Insert the below code at the bottom of the file -> Save
.product-form__submit.button {
background-color: black !important;
color: white !important;
}
#cart-notification-form > button {
background-color: black !important;
}
.cart__checkout-button.button {
background-color: black !important;
}
Hope this can help you
Kind regards,
HDL-Shin
This is an accepted solution.
Hi @walkermatter,
You can try this code by following these steps:
Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code
Step 2: Search file base.css, theme.css or styles.css
Step 3: Insert the below code at the bottom of the file -> Save
.product-form__submit.button {
background-color: black !important;
color: white !important;
}
#cart-notification-form > button {
background-color: black !important;
}
.cart__checkout-button.button {
background-color: black !important;
}
Hope this can help you
Kind regards,
HDL-Shin
Thanks! This was the right solution
.product-form__submit {
background: #000;
color: #fff;
}
Thanks. this worked to change 'add to cart' on product page, but not the check out buttons. HDL Shin's solution worked for changing all.
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025