Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hello,
I have been searching and cannot find a code that works. I am wanting to have item photos for products that do not have variants and are sold out to automatically be reduced in opacity.
I also am wanting to make items that have variants have "grayed out" variants in the product drop downs so that customers know which items are available.
I am using the Impulse theme and I have tried several codes and none of them have worked.
Solved! Go to the solution
This is an accepted solution.
Hi @NCCShop,
Go to Assets > theme.css and paste this at the bottom of the file:
.grid-product__tag--sold-out+.grid-product__link .grid__image-ratio {
opacity: 0.5;
}
Hope it helps!
Hi @NCCShop,
Please send your site and if your site is password protected, please send me the password. I will check it.
https://bogntvw3qxst1nyz-54968811584.shopifypreview.com
Here is a preview of my password protected website. If this doesn't work let me know.
Thank you!
This is an accepted solution.
Hi @NCCShop,
Go to Assets > theme.css and paste this at the bottom of the file:
.grid-product__tag--sold-out+.grid-product__link .grid__image-ratio {
opacity: 0.5;
}
Hope it helps!
Thank you SO SO much!! That worked. 🙂
Hi @NCCShop
I can not get this code to work on my theme: Supply
Under Assets, the option is theme.scss.liquid and not theme.css
Please can you help?
Many Thanks,
Oliver
Hi @LondonDGC,
You can create a question on the community and send me the link. I will check it.
Because this will help build a better community.
Thank you.
Posted and tagged you in it. Thank you
Thank you! I am currently trying to achieve the same with a custom theme. Can someone help me to implement this functionality to gray out sold out products on the homepage?
https://a1r9snlxn6pa8j57-45477658773.shopifypreview.com
Discover how to increase customer engagement on your store with articles from Shopify A...
By Jacqui Apr 23, 2025Hey 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, 2025