All things Shopify and commerce
Hi guys,
Looking for some help with changing the colour of a few buttons. Firstly the add to cart button, i went in and changed the code for this which worked when I go to view my store on my laptop however on my phone it hasnt changed.
Secondly i'm struggling with changing the 'View cart" button, if followed tutorials on changing the colour of this one but nothing seems to be working.
My store is Sunny Straps (mysunnystraps.myshopify.com)
Access 1855
thanks in advance!!
Solved! Go to the solution
This is an accepted solution.
Hi@cconquest98 welcome to the Shopify Community,
Please add below code to your theme.liquid file before the </body> tag and hit save hopefully your issue will be resolve.
<style>
#cart-notification-button {
background-color: #D67747 !important;
}
</style>
This is an accepted solution.
Hi@cconquest98 welcome to the Shopify Community,
Please add below code to your theme.liquid file before the </body> tag and hit save hopefully your issue will be resolve.
<style>
#cart-notification-button {
background-color: #D67747 !important;
}
</style>
Thanks so much for your help that's worked!
Any ideas on why the add to cart button is the right colour when viewing my store on my laptop but not when i view it from my phone?
can you please share a screenshot.
thanks
Yeah on my phone it looks like this
can you please place below code into your base.css file or theme.liquid file and hit save
@media screen and (max-width: 990px) {
.card--card .quick-add product-form .button {
background: #d67747 !important;
color: #fff8f2 !important;
}
}
Thanks
Thanks
Hello @cconquest98 ,
Find below css in "base.css" and Remove "media" query [@media (prefers-reduced-motion: no-preference) and (hover: hover)] from your css you've added for color changes in "base.css"
Current css
Hey Shraddha,
Thank you for your reply but when I look into this I can’t see that my current css looks like the one you’ve referenced there, I can’t see that it includes the “@media (prefers-reduced-motion: no-preference) and (hover: hover)” above?
Hi How are you?
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn 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, 2025