Shopify themes, liquid, logos, and UX
Hi there,
I'd like to change the background colour of my Add To Cart button. Right now it just blends in because it's the same colour as the page background. I've managed to change the border and text in the Theme editor to make is slightly more visible, but would like to change the background colour of only the button itself.
Without adding and app or editing/adding code if possible 🙂
I'm using the free Shopify theme Craft 5.0
Thank you!
Solved! Go to the solution
This is an accepted solution.
add this code to your base.css file.
Navigate to online store >> Click edit theme code.
Now find base.css and paste the following code:
.product-form__buttons .product-form__submit{
background: #e8d4d4 !important;
color: #000 !Important;
}
Can you share with me the page url...
Please let me know if it works by giving it a Like or marking it as a solution!
PageFly - #1 Page Builder for Shopify merchants.
All features are available from Free plan. Live Chat Support is available 24/7.
Hello,
The theme might not provide a way to adjust the button background. To change the button's background, you can target it through CSS, similar to the below snippet:
This is an accepted solution.
add this code to your base.css file.
Navigate to online store >> Click edit theme code.
Now find base.css and paste the following code:
.product-form__buttons .product-form__submit{
background: #e8d4d4 !important;
color: #000 !Important;
}
This worked, thank you!
yes this worked! thanks so much! is there a similar code which could be used for products/collections on the home page? right now the "Choose Options" and "Add to Cart" under products on the home page has the same old bland grey background.
@eFoli-Marvic yes this worked! thanks so much! is there a similar code which could be used for products/collections on the home page? right now the "Choose Options" and "Add to Cart" under products on the home page has the same old bland grey background.
Hi there this is great!
i've used this to successfully to change the colour of my Add to cart button on my product page using theme Craft 12.0.0.
however, the colour change is showing when i access my website/store on desktop but its not reflected when i access on mobile.
any ideas on how i can resolve this please?
Many thanks! 🙂
I’m Richard Nguyen from PageFly- Free Landing Page Builder
You can try with this code.
Follow this:
Go to Online Store->Theme->Edit code->base.css->paste bellow code in bottom of file
.quick-add__submit {
background: #0df382 !important;
}
It will look like this: https://prnt.sc/mTlAnnJotGHJ\
If you feel my answer is helpful, like it or mark it as a solution. Let me know if you have any questions.
Best regards,
Richard | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
PageFly - #1 Page Builder for Shopify merchants.
All features are available from Free plan. Live Chat Support is available 24/7.
User | RANK |
---|---|
209 | |
165 | |
70 | |
55 | |
53 |
Make the shift from discounts to donations, and witness your business not only thrive fina...
By Holly Dec 4, 2023On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...
By Skye Nov 8, 2023