Sorry, I have just activated another plugin that was overriding this one. After removing the previous, I can see the smart variations swatches!
I am back, the second snippet I have used is actually working! The problem was that the img element as a ‘iso-lazy-load’ class that, evidenlty, was showing the spinner and hiding the image!
I am happy
Hello,
I have just used this snippet but nothing changes. Maybe this can help: there is no such DOM element having the ‘woocommerce-LoopProduct-link’ class. I also tried to use nother CSS class (which selects a tag that has a ‘data-src’ attribute containing the lik to the image), but still nothing working.
jQuery('.woocom-project img').attr('src', function (){ return jQuery(this).data('data-src') });
Could you help me to solve?
-
This reply was modified 8 years, 3 months ago by simonemsr.