Reply To: Disable Zoom on single product Woocommerce

Home Forums WordPress Themes – Premium Lavish Pro Disable Zoom on single product Woocommerce Reply To: Disable Zoom on single product Woocommerce

#46971
Styled Themes
Keymaster

Please do add this code on child theme functions.php file to remove zooming effect and woocommerce support for zooom effect

/**
* @return remove woocommerce zoom script
*/
add_action( 'wp_head', 'lavish_child_remove_parent_scripts' );
function lavish_child_remove_parent_scripts() {
    wp_dequeue_script( 'lavish-bootstrap' );
}
/**
* @return remove woocommerce support for zooming effect
*/

add_action( 'after_setup_theme', 'lavish_child_remove_woocommerce_support', 20 );
function lavish_child_remove_woocommerce_support() {
    remove_theme_support( 'wc-product-gallery-zoom' );
    remove_theme_support( 'wc-product-gallery-lightbox' );
    remove_theme_support( 'wc-product-gallery-slider' );
}

Note: You can keep the woocommerce support for light boz and slider just by removing this code from above functions:

remove_theme_support( 'wc-product-gallery-lightbox' );
    remove_theme_support( 'wc-product-gallery-slider' );

Let us know how it goes for you.
Thanks
`