Skip to content

Instantly share code, notes, and snippets.

@elias1435
Last active October 29, 2022 04:21
Show Gist options
  • Save elias1435/84467464164ab21159e0648fa124e4bb to your computer and use it in GitHub Desktop.
Save elias1435/84467464164ab21159e0648fa124e4bb to your computer and use it in GitHub Desktop.
Remove zoom effect on WooCommerce Single product image | WooCommerce Gallery product images. use this code in your child theme functions.php
function remove_image_zoom_support() {
remove_theme_support( 'wc-product-gallery-zoom' );
}
add_action( 'wp', 'remove_image_zoom_support', 100 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment