Shopify themes, liquid, logos, and UX
Hi all, hope everyone is well.
I recently started using the symmetry theme and I wanted my sold out variants to look like this picture above with the variant being translucent and a X crossed over it on the product page. Is there any code I can add that can give me a result like this? Thank you
My website is: https://www.newworldvisionz.com
password is: nwv2
Solved! Go to the solution
This is an accepted solution.
Hey @CamrinAce,
Go to your theme's "Edit Code" Option, then in the search bar type "theme.liquid"
Below the tag "<head>" tag paste the following. Screenshot attached for reference.
<style>
label[title="Sold out"]:before {
content: '';
border-top: 1px solid rgba(75,75,75,0.5);
height: 1px;
position: absolute;
top: 50%;
width: 70px;
rotate: 45deg;
}
label[title="Sold out"]:after {
content: '';
border-top: 1px solid rgba(75,75,75,0.5);;
height: 1px;
position: absolute;
top: 50%;
width: 70px;
rotate: 135deg;
}
label.opt-label.opt-label--btn.btn.relative.text-center {
height: 50px !important;
width: 50px !important;
min-width: 20px !important;
min-height: 20px !important;
max-height: 100px !important;
max-width: 100px !important;
padding: 0 !important;
}
</style>
Screenshot is for reference only, the correct code to paste is the one shown above.
This is an accepted solution.
Hey @CamrinAce,
Go to your theme's "Edit Code" Option, then in the search bar type "theme.liquid"
Below the tag "<head>" tag paste the following. Screenshot attached for reference.
<style>
label[title="Sold out"]:before {
content: '';
border-top: 1px solid rgba(75,75,75,0.5);
height: 1px;
position: absolute;
top: 50%;
width: 70px;
rotate: 45deg;
}
label[title="Sold out"]:after {
content: '';
border-top: 1px solid rgba(75,75,75,0.5);;
height: 1px;
position: absolute;
top: 50%;
width: 70px;
rotate: 135deg;
}
label.opt-label.opt-label--btn.btn.relative.text-center {
height: 50px !important;
width: 50px !important;
min-width: 20px !important;
min-height: 20px !important;
max-height: 100px !important;
max-width: 100px !important;
padding: 0 !important;
}
</style>
Screenshot is for reference only, the correct code to paste is the one shown above.
Thank you!! It came out perfect!
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