Hi Marvin,
Please add the following snippet to your child theme’s functions.php file:
add_filter( 'woo_variation_gallery_image_inner_html', function( $inner_html, $image, $template, $attachment_id, $options ){
$template = '<div class="wvg-single-gallery-image-container"><img width="%d" height="%d" src="%s" class="%s" alt="%s" title="%s" data-caption="%s" data-src="%s" data-large_image="%s" data-large_image_width="%d" data-large_image_height="%d" srcset="%s" sizes="%s" %s /></div>';
$inner_html = sprintf( $template, esc_attr( $image['src_w'] ), esc_attr( $image['src_h'] ), esc_url( $image['src'] ), esc_attr( $image['class'] ), esc_attr( $image['alt'] ), esc_attr( $image['title'] ), esc_attr( $image['caption'] ), esc_url( $image['full_src'] ), esc_url( $image['full_src'] ), esc_attr( $image['full_src_w'] ), esc_attr( $image['full_src_h'] ), esc_attr( $image['srcset'] ), esc_attr( $image['sizes'] ), $image['extra_params'] );
return $inner_html;
}, 10, 5);
Let me know if this helps resolve the issue.
Thank You
How to disable lazy load
Marvin Ramadan
Hello Support Team,
as shown on your Demo page you have enabled lazy load for gallery images, how can i turn of the the lazy load for the gallery images ?