weedor
August 17, 2022, 9:33am
1
I deactivated the toggle “Use WooCommerce Scripts” in order to remove zoom of the featured image in single product template.
Although it is deactivated the zoom is still remains and works.
Environment info
WordPress version: 6.0.1
Gutenberg Plugin version: not installed
Cwicly Plugin version: 1.1.8.5.7
Cwicly Theme version: 1.0.3
Louis
August 17, 2022, 5:42pm
2
Hello @weedor ,
The “Use WooCommerce Scripts” options does the following:
remove_theme_support('wc-product-gallery-zoom');
remove_theme_support('wc-product-gallery-lightbox');
remove_theme_support('wc-product-gallery-slider');
Anything extra is not managed by Cwicly currently.
1 Like
weedor
August 17, 2022, 5:49pm
3
Thank you very much.
I didn’t tried in the gallery but for the zoom in the single product page, I added this snippet that works fine:
add_filter( ‘woocommerce_single_product_zoom_enabled’, ‘__return_false’ );
`
Louis
August 17, 2022, 5:59pm
4
Super @weedor .
Indeed, we haven’t included that specific filter yet, so that’s the way to go
1 Like