Skip to content

Instantly share code, notes, and snippets.

@rynaldos-zz
Created April 8, 2017 20:00
Show Gist options
  • Save rynaldos-zz/1fbb5069be0dc18677f01406d495e47e to your computer and use it in GitHub Desktop.
Save rynaldos-zz/1fbb5069be0dc18677f01406d495e47e to your computer and use it in GitHub Desktop.
[WooCommerce 3.0+] Remove product gallery lightbox feature
add_action( 'after_setup_theme', 'remove_pglb_theme_support', 100 );
function remove_pglb_theme_support() {
remove_theme_support( 'wc-product-gallery-lightbox' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment