admin管理员组文章数量:1426975
I'm trying to add a class lazyload and the data-src attribute to my product images (woocommerce). I've look everywhere and couldn't find a solution for this.
I've try with some plugins, like a3 lazyload, but it does not work with the product images.
Thank you in advance,
I'm trying to add a class lazyload and the data-src attribute to my product images (woocommerce). I've look everywhere and couldn't find a solution for this.
I've try with some plugins, like a3 lazyload, but it does not work with the product images.
Thank you in advance,
Share Improve this question asked Mar 20, 2019 at 14:06 ChefussChefuss 231 silver badge6 bronze badges1 Answer
Reset to default 1Are you using a theme that has WooCommerce support? Look for:
woocommerce_get_product_thumbnail
and replace it with
the_post_thumbnail
This has worked before for me with A3 Lazy Load plugin.
本文标签: woocommerce image product add a class and datasrc attributes
版权声明:本文标题:woocommerce image product add a class and data-src attributes 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745344801a2654428.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论