Disable Zoom, Gallery Slider & Lightbox at Single Product in Woocommerce

If you want to disable zoom, Gallery Slider & Lightbox effect on single product page in woocommerce than add this code to your theme’s functions.php file of your active child theme (or theme).

add_action( 'after_setup_theme', 'wp_remove_zoom_lightbox_theme_support', 99 );
 
function wp_remove_zoom_lightbox_theme_support() { 
remove_theme_support( 'wc-product-gallery-zoom' );
remove_theme_support( 'wc-product-gallery-lightbox' );
remove_theme_support( 'wc-product-gallery-slider' );
}

Leave a Comment

Scroll to Top