Disable WooCommerce Lightbox Image Zoom

WooCommerce No Comments

Add the following code to your child themes functions.php file:


// DISABLE WOOCOMMERCE LIGHTBOX
function remove_image_zoom_support() {
remove_theme_support( 'wc-product-gallery-zoom' );
remove_theme_support( 'wc-product-gallery-lightbox' );
}
add_action( 'wp', 'remove_image_zoom_support', 100 );

reference: https://generatepress.com/forums/topic/disable-lightbox-image-zoom-woocommerce/

LEAVE A COMMENT