srcset responsive attribute interferes with product designer replacing product image
J
Jeremy Aaron Horland
started a topic
about 8 years ago
Problem -- and simple solution.
The introduction of the responsive product media image in wordpress 'srcset' attribute has started to interfere with the loading of product custom images in the woocommerce custom product image display screens.
To correct for this is simple as a short term solution :
1) load your favorite on-page or short-code Javascript editor as a plug in. I used : "OH Add Script Header Footer"
2) add the following code on the product or page on which you want to re-enable product custom imagesĀ
<script type='text/javascript'>
jQuery("img.wp-post-image").removeAttr("srcset");
</script>
-- this has re-enabled an essential feature on my pages.
Jeremy Aaron Horland
Problem -- and simple solution.
The introduction of the responsive product media image in wordpress 'srcset' attribute has started to interfere with the loading of product custom images in the woocommerce custom product image display screens.
To correct for this is simple as a short term solution :
1) load your favorite on-page or short-code Javascript editor as a plug in. I used : "OH Add Script Header Footer"
2) add the following code on the product or page on which you want to re-enable product custom imagesĀ
<script type='text/javascript'>
jQuery("img.wp-post-image").removeAttr("srcset");
</script>
-- this has re-enabled an essential feature on my pages.
thanks
Deleted Agent
thanks
-
Adding Fancy Products to Categories
-
Shortcode for specfic product designer
-
What theme is recommended to use with FPD ?
-
Exclude Image from export
-
Google Font Family adds extras
-
Floating Dialog box
-
Uploadzone not working
-
Image transparency like in T-shirt demo
-
How do I get clipart
-
What does the LOAD button do / what is it for?
See all 2194 topics