Hi,
Is there a way to remove the cross line from any variant, which is out of stock and just have that size or color faded instead?
https://theothelabel.com/products/dione-short-sleeve-pleated-neck-top?variant=47582071619872
Hi,
Is there a way to remove the cross line from any variant, which is out of stock and just have that size or color faded instead?
https://theothelabel.com/products/dione-short-sleeve-pleated-neck-top?variant=47582071619872
Hi @JoeyRoo ,
Add the following
This will disable clicks on the variant and you can adjust the colors as you see fit. So the rgba value 0.15 means 15% black.
.variations input[type='radio'].is-disabled + label:before {
content: unset !important;
}
.variations input[type='radio'].is-disabled + label {
background-color: rgba(0, 0, 0, 0.15);
pointer-events: none !important;
}
Hello @JoeyRoo , Hello! Please follow these steps to add this CSS code:
.variations input[type="radio"].is-disabled + label:before {
content: unset;
}
/* to get opicity of the variant name add the below css also */
.variations input[type="radio"].is-disabled + label > span {
opacity: 1; /* before its value is 0.4 set it to 1 */
}
See the screenshot below,
Feel free to reach out if you have any questions or need assistance.
Best Regards,
DWS.
Hello @JoeyRoo
You can add code by following these steps
Go to Online Store → Theme → Edit code.
Open your theme.liquid file
Paste the below code before on theme.liquid
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
Hey @JoeyRoo
Follow these Steps:
Go to Online Store
Edit Code
Find theme.liquid file
Add the following code in the bottom of the file above tag
RESULT:
If I managed to help you then, don’t forget to Like it and Mark it as Solution!
Best Regards,
Moeed
Hi @JoeyRoo
.variations input[type='radio'].is-disabled + label:before {
content: unset !important;
}
This removes the line, but now the Color and Size are not faded if out of stock. Basically If someone clicks on Size Medium for example, I want all the colors that are out of stock in that size to fade and vice versa. So if someone clicks on A color instead of a size, I want all the sizes that are out of stock in that color to fade.