Website Building » WooCommerce » How Do I Turn Off Zoom Image in WooCommerce?

How Do I Turn Off Zoom Image in WooCommerce?

Last updated on October 1, 2022 @ 7:36 pm

If you have a WordPress website that uses the WooCommerce plugin, you may have noticed that the images in your product galleries are automatically zoomed in when you hover over them. This can be a useful feature, but it can also be annoying if you don’t want your visitors to be able to zoom in on your images. Fortunately, there is a way to turn off the zoom feature in WooCommerce.

To disable the zoom function in WooCommerce, you will need to add a line of code to your site’s functions.php file. You can do this by logging into your WordPress dashboard, going to Appearance > Editor, and selecting the functions.php file from the list of files on the right hand side. Once you have opened the file, simply add the following line of code:

PRO TIP: If you are using WooCommerce to sell products online, you may want to disable the zoom feature for your images. This can be done in the WooCommerce settings.

You can find the setting by going to WooCommerce > Settings > Products > Display. Then, under Images, you will see the Zoom option. You can either disable it completely, or enable it only for certain product categories.

If you disable zoom for your images, your customers will not be able to zoom in on product images when they are viewing them. This could potentially lead to them not being able to see all the details of your products, which could impact sales.

add_filter( 'woocommerce_single_product_image_zoom_enabled', '__return_false');

Save your changes and you’re done! The next time you visit your WooCommerce product gallery, you’ll notice that the images are no longer zoomed in when hovered over.

How Do I Turn Off Zoom Image in WooCommerce?

If you have a WordPress website that uses the WooCommerce plugin, you may have noticed that the images in your product galleries are automatically zoomed in when you hover over them.

Drew Clemente

Drew Clemente

Devops & Sysadmin engineer. I basically build infrastructure online.