Skip to content

Instantly share code, notes, and snippets.

@rushijagani
Created July 3, 2018 13:30
Show Gist options
  • Select an option

  • Save rushijagani/a7d7434b8e17a7eff03ea5ebfa3a6ee7 to your computer and use it in GitHub Desktop.

Select an option

Save rushijagani/a7d7434b8e17a7eff03ea5ebfa3a6ee7 to your computer and use it in GitHub Desktop.
Remove the Woocommerce support for zooming effect
<?php
/**
* @return remove woocommerce support for zooming effect
*/
add_action( 'after_setup_theme', 'astra_child_remove_woocommerce_support', 20 );
function astra_child_remove_woocommerce_support() {
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