I currently have enabled “Show swatches on archive/shop page” on my website. However, I would like to know if there is a way (or code you can give me to add to my functions.php file) to disable to variations for the Related Products. (I have attached a screenshot for you to see).
But I want to prevent the variations from firing at all for the related products, in order to increase the load time of my pages. So how would I disable this on only the related products?
Hide variations on related products
Stephen Barna
I currently have enabled “Show swatches on archive/shop page” on my website. However, I would like to know if there is a way (or code you can give me to add to my functions.php file) to disable to variations for the Related Products. (I have attached a screenshot for you to see).
I was originally using this css code:
.related.products .woocommerce-variation-availability, .related.products .variations {
display: none;
}
But I want to prevent the variations from firing at all for the related products, in order to increase the load time of my pages. So how would I disable this on only the related products?
Thank you!
Best,
Stephen Barna