A simple, powerful and independent e-commerce platform.
Sell anything with ease.

Disable zoom feature on product page images

The zoom feature on the product images is useful in many circumstances, but not always appropriate. You can disable this feature with the code below, still leaving the lightbox gallery option in place. To show the zoom-in cursor over the main image, you may need to add this code to your css file.

.woocommerce-product-gallery a>img:hover {
  cursor: zoom-in;
}

		/**
 * Disable zoom feature on product page images
 */

add_action('wp', 'cc_remove_zoom_lightbox_slider', 99);

function cc_remove_zoom_lightbox_slider() {

  remove_theme_support('wc-product-gallery-zoom');

}
	
View Raw Code ID: 9987