With Woocommerce, I'm using the Storefront theme and have been wondering if there is a way to adjust the zooming level imposed on the product image upon hovering on it.
Any help is greatly appreciated.
With Woocommerce, I'm using the Storefront theme and have been wondering if there is a way to adjust the zooming level imposed on the product image upon hovering on it.
Any help is greatly appreciated.
This is possible using
woocommerce_single_product_zoom_options
dedicated filter hook.Related: Available parameters details for WooCommerce product image zoom options
Usage with woocommerce_single_product_zoom_options filter hook to change the magnification level (for example we mill minimize the zoom level a bit less):
Code goes in functions.php file of your active child theme (or active theme). Tested and work.
Before with default magnification (set to
1
):Before with magnification set to
0.7
: