corsonr
4/5/2017 - 8:42 AM

Disable WooCommerce 3.+ lightbox

Disable WooCommerce 3.+ lightbox

<?php // Do not include this if already open! Code goes in theme functions.php.

add_action( 'after_setup_theme', 'remove_wc_gallery_lightbox', 100 );

function remove_wc_gallery_lightbox() { 
  remove_theme_support( 'wc-product-gallery-lightbox' );
}