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.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745344802a4623493.html
评论列表(0条)