Shopify themes, liquid, logos, and UX
Hey there, I want to change background Color of "Buy it now" button to black Color. Please help me.
Hi,
Can you kindly share your store link (with the password, if any) with us? We will check it and suggest you a solution if possible.
B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.
B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.
B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.
BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now
You can add code by following these steps
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file
3. Paste the below code before </body> on theme.liquid
<style>
.BUz42FHpSPncCPJ4Pr_f {
background: #3cdbdb !important;
}
.BUz42FHpSPncCPJ4Pr_f:before, .BUz42FHpSPncCPJ4Pr_f:after{
box-shadow: unset !important;
}
</style>
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
I want to add black colour
You can add code by following these steps
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file
3. Paste the below code before </body> on theme.liquid
<style>
.BUz42FHpSPncCPJ4Pr_f {
background: #000 !important;
color: #fff !important;
}
.BUz42FHpSPncCPJ4Pr_f:before, .BUz42FHpSPncCPJ4Pr_f:after{
box-shadow: unset !important;
}
</style>
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
Send me the code only
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file
3. Paste the below code before </body> on theme.liquid
<style>
.BUz42FHpSPncCPJ4Pr_f {
background: #000 !important;
color: #fff !important;
}
.BUz42FHpSPncCPJ4Pr_f:before, .BUz42FHpSPncCPJ4Pr_f:after{
box-shadow: unset !important;
}
</style>
Step 1. Go to Admin -> Online store -> Theme > Edit code
Step 2. Find the main css file theme.css (or base.css,...) . Search for the following CSS snippet
Step 3. Copy this code at the end of the file
.product-form__buttons .shopify-payment-button__button,
.shopify-payment-button__button--unbranded:hover,
.shopify-payment-button__button--unbranded:hover:not([disabled]) {
background-color: black!important;
color: white!important;
}
.product-form__buttons .shopify-payment-button__button:after,
.product-form__buttons .shopify-payment-button__button:before {
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19)!important;
}
You will get the result like this
If it helps you, please like and mark it as the solution.
Best Regards
B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.
B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.
B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.
BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now
Not working
Did you paste the code like this?
B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.
B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.
B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.
BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now
Yes, It changes the buy button Color when I move cursor on that button. When I move the cursor it becomes yellow
try add this to theme.liquid file again please
<style>
.shopify-payment-button__button--unbranded,
.shopify-payment-button__button--unbranded:hover,
.shopify-payment-button__button--unbranded:hover:not([disabled]) {
background-color: black!important;
color: white!important;
}
.shopify-payment-button__button--unbranded,
.shopify-payment-button__button--unbranded:before,
.shopify-payment-button__button--unbranded:after,
.shopify-payment-button__button--unbranded:hover:afte
{
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19)!important;
}
</style>
B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.
B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.
B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.
BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now
Not working. Thanks! I'll ask someone else
I'm waiting for you????????
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025