Skip to content

Instantly share code, notes, and snippets.

@majeedraza1
Created April 25, 2017 08:51
Show Gist options
  • Save majeedraza1/676f62bc6f5d7aa9ea6db59053369f9a to your computer and use it in GitHub Desktop.
Save majeedraza1/676f62bc6f5d7aa9ea6db59053369f9a to your computer and use it in GitHub Desktop.
<?php
/**
* When you hover a product image when on the single product page, you can zoom on the products images; I love this feature, however
* Some people would like to remove it.
* To do so, simply paste this snippet in your functions.php file
*/
add_action( 'after_setup_theme', 'theme_name_setup' );
function theme_name_setup() {
remove_theme_support( 'wc-product-gallery-zoom' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment