Shopify themes, liquid, logos, and UX
Hello! My website is litmeup.us and the password is lit
I want anything sold out to be displayed at 50% opacity like this site or this site
I looked at many other options before asking but none of the solutions worked for me. Thanks again!
Solved! Go to the solution
This is an accepted solution.
Hey @ilistentoemo
Follow these Steps:
1) Go to Online Store
2) Edit Code
3) Find theme.liquid file
4) Add the following code in the bottom of the file above </body> tag
{% if product.available %}
<style>
.card .media img {
opacity: 1 !important;
}
</style>
{% else %}
<style>
.card .media img {
opacity: 0.5 !important;
}
</style>
{% endif %}
RESULT:
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
This is an accepted solution.
Hey @ilistentoemo
Follow these Steps:
1) Go to Online Store
2) Edit Code
3) Find theme.liquid file
4) Add the following code in the bottom of the file above </body> tag
{% if product.available %}
<style>
.card .media img {
opacity: 1 !important;
}
</style>
{% else %}
<style>
.card .media img {
opacity: 0.5 !important;
}
</style>
{% endif %}
RESULT:
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
Awesome thank you!
Thank you for your reply. I'm glad to hear that the solution worked well for you. If you require any more help, please don't hesitate to reach out. If you find this information useful, a Like would be greatly appreciated.
Hi,
I tried this on my Dawn theme and it greyed out all of the products in my 'New In' collection on my home page!
Do you know what I did wrong?
Would love to implement it on my store as I really liked the feature when I was using Minimal theme.
Thanks!
Carol.
Learn 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, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025