Disable Woocommerce Zoom

To disable the image zoom effect in Woocommerce, follow these steps:

Step 1: Open your website’schild theme Navigate to your child theme in WordPress. If you don’t have a child theme, you should create one to ensure that your changes are not lost when you update the main theme.

Step 2: Edit the function.php file In the child theme you will find the function.php file. Open it with a text editor.

Step 3: Add the code snippet Add the following code snippet to the function.php file:

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

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

				
			

Step 4: Save and update Save the function.php file and upload it to your server. Then go to your website and refresh the page to make the changes effective.

That’s all! The image zoom effect in Woocommerce is now disabled.

Quick fix: My slim wordpress plugin disables image zoom effect in woocommerce:

Efficient, lightweight plugin to disable zoom in WooCommerce. No burden for your website. Perfect for quick, easy removal of the zoom function

Frequently asked questions

1. how to disable image zoom effect in woocommerce?

To disable the image zoom effect in Woocommerce, you need to use a child theme and add the above code snippet to the function.php file.

2. where can I find the function.php file of my child theme?

The function.php file of your child theme is located in the directory of your child theme. You can access it by going to “Design” -> “Theme Editor” in your WordPress dashboard and selecting the child theme.

3. what happens if I don’t use a child theme?

If you don’t use a child theme, you should create one to ensure that your changes are not lost when you update the main theme. Without a child theme, your changes in the function.php file would be overwritten during the theme update.

4. Can I keep the image zoom effect enabled for certain products?

Yes, it is possible to keep the image zoom effect enabled for certain products. To do this, you would need to customize the code snippet and add conditions to determine which products should have the zoom effect and which should not.

5. is there an alternative method to disable the image zoom effect?

Yes, there are alternative methods to disable the image zoom effect in Woocommerce. Another option is to use a plugin that provides this feature, or to override the image zoom effect via CSS styles. Note, however, that using plugins or editing CSS directly may require technical knowledge.

Scroll to Top