Shopify themes, liquid, logos, and UX
Hey guys,
I want to change the background color of the buy button, I want to make it a rainbow gradient, like the 1st picture. Is there an App that enables you to choose a color scheme for your buy button ? Or codes maybe?
Best regards
I
Solved! Go to the solution
This is an accepted solution.
Hi @ekrembcc
Try this one;
.product-form__submit {
background: linear-gradient(90deg, rgba(0, 209, 255, 1) 16%, rgba(0, 255, 49, 1) 33%, rgba(202, 255, 119, 1) 49%, rgba(252, 43, 43, 1) 66%, rgba(246, 53, 252, 1) 84%);
}
Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!
This is an accepted solution.
Only on the cart page? Or also the cart notification.
Replace the code below. Same instruction
For the cart page.
.product-form__submit, button#checkout {
background: linear-gradient(90deg, rgba(0, 209, 255, 1) 16%, rgba(0, 255, 49, 1) 33%, rgba(202, 255, 119, 1) 49%, rgba(252, 43, 43, 1) 66%, rgba(246, 53, 252, 1) 84%);
}
And Save.
With the checkout page and notification:
.product-form__submit, form#cart-notification-form .button, button#checkout {
background: linear-gradient(90deg, rgba(0, 209, 255, 1) 16%, rgba(0, 255, 49, 1) 33%, rgba(202, 255, 119, 1) 49%, rgba(252, 43, 43, 1) 66%, rgba(246, 53, 252, 1) 84%);
}
And Save.
result:
Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!
@ekrembcc, Could you kindly share your store url and password?
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
This is an accepted solution.
Hi @ekrembcc
Try this one;
.product-form__submit {
background: linear-gradient(90deg, rgba(0, 209, 255, 1) 16%, rgba(0, 255, 49, 1) 33%, rgba(202, 255, 119, 1) 49%, rgba(252, 43, 43, 1) 66%, rgba(246, 53, 252, 1) 84%);
}
Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!
Thank you so much!!! It worked 😍
Where do I have to copy the code to make the same for the checkout page?
Kind regards
This is an accepted solution.
Only on the cart page? Or also the cart notification.
Replace the code below. Same instruction
For the cart page.
.product-form__submit, button#checkout {
background: linear-gradient(90deg, rgba(0, 209, 255, 1) 16%, rgba(0, 255, 49, 1) 33%, rgba(202, 255, 119, 1) 49%, rgba(252, 43, 43, 1) 66%, rgba(246, 53, 252, 1) 84%);
}
And Save.
With the checkout page and notification:
.product-form__submit, form#cart-notification-form .button, button#checkout {
background: linear-gradient(90deg, rgba(0, 209, 255, 1) 16%, rgba(0, 255, 49, 1) 33%, rgba(202, 255, 119, 1) 49%, rgba(252, 43, 43, 1) 66%, rgba(246, 53, 252, 1) 84%);
}
And Save.
result:
Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!
Thank you so much!
Actually I also want to add that rainbow gradient to the button you see below (1st picture). There is a problem I want to solve additionally. When klicking on the button, the page with all products appears (2nd picture). Now since I have only one product, this page has to be replaced. I want the button to direct to the product page. Can you tell me how I can do that?
Thank you very much for your quick replies! 🙏
Kind regards!
Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025