Shopify themes, liquid, logos, and UX
I saw lots of posts about hiding unavailable variants in the Dawn theme. Has anyone come up with a solution for hiding unavailable variants in Savor (New free theme)?
And if/when they are hidden, can it automatically select the first available variant options?
Solved! Go to the solution
This is an accepted solution.
Hey @L5Graphix
Follow these Steps:
1) Go to Online Store
2) Edit Code
3) Find password.liquid file
4) Add the following code in the bottom of the file above </body> tag
<style>
.variant-option__button-label:has([data-option-available=false]) {
display: none !important;
}
</style>
RESULT
If I managed to solve your problem then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
Hey @L5Graphix
Welcome to Shopify Community! Can you share your Store URL so I can have a look on it? Also, if you have password enabled then please share the password as well. Your cooperation would be greatly appreciated.
Best Regards,
Moeed
4hajm1-bj.myshopify.com/products/irregular-chat-t-shirt
This is an accepted solution.
Hey @L5Graphix
Follow these Steps:
1) Go to Online Store
2) Edit Code
3) Find password.liquid file
4) Add the following code in the bottom of the file above </body> tag
<style>
.variant-option__button-label:has([data-option-available=false]) {
display: none !important;
}
</style>
RESULT
If I managed to solve your problem then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
Pasting that code in theme.liquid worked! Thank you!
Is there a way to make it automatically select the new list of available variants?
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