All things Shopify and commerce
I updated my company's website theme which had not been done in 7 years. I've got mostly everything worked out except for one product page's variants. One of our products come in 6 sizes, but not every size comes in every color. I'm using Taiga theme, and I may reach out to them for assistance. Maybe it's an If/Then code that could solve this. I haven't been trained in coding, but I've done okay with it from YouTube tutorials and instructions on this forum.
Is there a way to totally remove the color swatches when a certain size is selected? I.E., when I click size 25, all the swatches show (it's available in all the colors), and when I click size 150, only two swatches show (because those are the only colors that size is available in).
Hi @scoutkysek
can you share your store url & password (if applicable) ?
Hello @scoutkysek ,
Yes it's possible you need to use css to hide them based on the dynamic class or attributes.
Please share the product URL so I can check.
Regards
Guleria
Use this css in reset.css or any other related css file
[data-cross-unavailable=true] .product-form__input input[type=radio].disabled+label
{
display: none;
}
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