Home » Detail » Knowledge Base Article

Remove Zoom effect in WooCommerce

 Created Date: 3/11/2022 8:06:48 PM |  User Level: Regular User |  Views: 520

You will need to be logged into the system as an administrator with writes to customize the theme of your WordPress website. Once you are logged in do the following steps:

// Disable the Zoom effect within WooCoommerce product pages
add_action('after_setup_theme', 'remove_wc_gallery_zoom', 100);

 function remove_wc_gallery_zoom() {
     remove_theme_support('wc-product-gallery-zoom');
}