Answer the question
In order to leave comments, you need to log in
Why won't zoom on Woocommerce photos turn off?
In the product card, when you hover over the photo with the mouse, the photo starts to zoom. And to open the entire gallery, you need to click on the magnifying glass icon. This does not suit me, I want to turn off the zoom and have the photos open by clicking on them.
Please tell me why it doesn't work:
apply_filters( 'woocommerce_single_product_zoom_enabled', disable_zoom() );
function disable_zoom(){
return 0;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question