Shopify themes, liquid, logos, and UX
How to change color of add to cart button on Motion theme?
Solved! Go to the solution
This is an accepted solution.
Hey @swissbutik@swissbutik,
I hope you're doing well!
1. From your Shopify Admin go to online store > themes > actions > edit code
2. In your theme.liquid file, find the </body> (press CTRL + F or command + F on Mac)
3. paste this code right above the </body> tag:
<style>
[class*='product'] button[data-add-to-cart]{
background: #000 !important;
border-color: #000 !important;
color: #fff !important
}
[class*='product'] button[data-add-to-cart]:hover{
background: #000 !important;
border-color: #000 !important;
color: #fff !important
}
</style>
You can change the hex value to any color you wish.
#000 = background
#fff = text
If it helps you please click on the "like" button and mark this answer as a solution!
Thank you.
Kind regards,
Diego
This is an accepted solution.
Hey @swissbutik@swissbutik,
I hope you're doing well!
1. From your Shopify Admin go to online store > themes > actions > edit code
2. In your theme.liquid file, find the </body> (press CTRL + F or command + F on Mac)
3. paste this code right above the </body> tag:
<style>
[class*='product'] button[data-add-to-cart]{
background: #000 !important;
border-color: #000 !important;
color: #fff !important
}
[class*='product'] button[data-add-to-cart]:hover{
background: #000 !important;
border-color: #000 !important;
color: #fff !important
}
</style>
You can change the hex value to any color you wish.
#000 = background
#fff = text
If it helps you please click on the "like" button and mark this answer as a solution!
Thank you.
Kind regards,
Diego
Do you also know how to change the color of the pricing and make it bold? The discount price
Hi @swissbutik
Would you mind to share your store URL? Thanks!
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024