Skip to content

Instantly share code, notes, and snippets.

@corsonr
Created April 5, 2017 08:48
Show Gist options
  • Save corsonr/8b09959b839ab6e7d909089776f27d0b to your computer and use it in GitHub Desktop.
Save corsonr/8b09959b839ab6e7d909089776f27d0b to your computer and use it in GitHub Desktop.
Disable WooCommerce 3.+ Zoom
<?php
remove_theme_support( 'wc-product-gallery-zoom' );
@xandl
Copy link

xandl commented May 15, 2017

In case you are working with a child-theme, you may want to wrap that in the after_setup_theme hook with a higher priority, this one works in Divi

add_action( 'after_setup_theme', function() {
	remove_theme_support( 'wc-product-gallery-zoom' );
}, 20 );

@worldsdream
Copy link

worldsdream commented May 21, 2017

@xandl is right. On other themes I had to do the same. You should edit your code @corsonr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment