Disable WooCommerce 3.+ Zoom

In WooCommerce 3.+ there’s a cool new feature: the zoom!

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, within the theme folder:

About the author

Remi Hey! My name is Rémi Corson, I'm a French WordPress Developer, I code stuff and I write from time to time ;-) Buy a coffee
Show your support

Related Posts

3 comments

  1. Hi Remi! Thanks for this post. I did add that code but didn’t work for me. I’m using Divi theme. Any suggestion?

    • Bill:

      Search for:
      // Add support for WooCommerce
      add_theme_support( ‘woocommerce’ );
      add_theme_support( ‘wc-product-gallery-zoom’ );
      add_theme_support( ‘wc-product-gallery-lightbox’ );
      add_theme_support( ‘wc-product-gallery-slider’ );
      in functions.php of your theme.
      Disable it with
      //add_theme_support( ‘wc-product-gallery-zoom’ );

  2. xpzanpx:

    Hello,
    i’ve tried to add this code to functions.php but it doesn’t work for me neither. What else i can do to remove zoom?

Leave a Reply