Shopify themes, liquid, logos, and UX
My customers are getting confused about items that are sold out. Currently, the button is white with grey text and if it is clicked on it turns purple with grey text. I would like to change the sold out button color to red and have it not change if it is clicked on. Here is my website: www.Quirkyfinds.com
Hi @Rachal_Prince,
Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code
Step 2: Search file theme.liquid
Step 3: Insert this code above </head> tag:
<style>
button.add-to-cart[disabled='disabled'] {
background-color: red !important;
}
</style>
Hope this can help you,
If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you😍
Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges: Get more sales with striking labels, badges, and banners from our 10,000+ available templates.
BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
Hi @Rachal_Prince ,
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file
3. In theme.liquid, paste the below code before </head>
<style>
button.add-to-cart[disabled='disabled'] {
background-color: red !important;
}
</style>
If my reply is helpful, kindly click like and mark it as an accepted solution.
Thanks!
Step 1. Go to Admin -> Online store -> Theme > Edit code
Step 2. Find the file theme.liquid.
Step 3. Add this code before </body>
<style>
button.add-to-cart[disabled="disabled"] {
color: red;
}
button.add-to-cart[disabled="disabled"]:hover {
background: #f6f6f6 !important;
color: red;
}
<style>
Result:
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
Hello @Rachal_Prince
Go to online store ----> themes ----> actions ----> edit code---->theme.css
add this code at the end of the file.
button.add-to-cart[disabled="disabled"] {
color: red;
}
button.add-to-cart[disabled="disabled"]:hover {
background: #f6f6f6 !important;
color: red;
}
result
If this was helpful, hit the like button and accept the solution.
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