Solved

Help! I want to make my sold out items transparent Dawn Theme

ilistentoemo
Tourist
9 0 3

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!

 

ttttt.pngttttt1.png

Accepted Solution (1)

Moeed
Shopify Partner
3793 958 1189

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:

Moeed_0-1693517895311.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

Need a Shopify developer? Chat on WhatsApp


- For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
- Your Coffee Tip and my code, A perfect blend. ❤️

View solution in original post

Replies 4 (4)

Moeed
Shopify Partner
3793 958 1189

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:

Moeed_0-1693517895311.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

Need a Shopify developer? Chat on WhatsApp


- For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
- Your Coffee Tip and my code, A perfect blend. ❤️
ilistentoemo
Tourist
9 0 3

Awesome thank you!

Moeed
Shopify Partner
3793 958 1189

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.

Need a Shopify developer? Chat on WhatsApp


- For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
- Your Coffee Tip and my code, A perfect blend. ❤️
vintagejewelbox
Visitor
3 0 0

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.