Quantcast
Channel: How to get rid of the hover zoom in WooCommerce single products - WordPress Development Stack Exchange
Viewing all articles
Browse latest Browse all 4

Answer by jod.z for How to get rid of the hover zoom in WooCommerce single products

$
0
0

I wanted to disable the zoom and also have the featured image trigger the lightbox. Someone gave me this code and it worked.

add_action( 'after_setup_theme', 'add_wc_gallery_lightbox', 100 );function add_wc_gallery_lightbox() {     remove_theme_support( 'wc-product-gallery-zoom' );}

Viewing all articles
Browse latest Browse all 4

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>