Answer the question
In order to leave comments, you need to log in
How to disable zoom in woocomerce, in your theme?
https://workmetall.com/product/ud-0217-00-00-000-s...
I tried to disable the product card
via css, but everything comes out askew (I point at the picture like there is no zoom, I click on it, it appears, I take it away move the mouse to the side and point it again, it appears again)
I can’t find a solution, please tell the noob
Answer the question
In order to leave comments, you need to log in
https://createandcode.com/how-to-disable-zoom-light...
Add to functions.phpremove_theme_support( 'wc-product-gallery-zoom' );
azerphoenix suggested the right solution, but you need to use the after_setup_theme hook . We place the code below in functions.php .
add_action('after_setup_theme', 'remove_zoom_theme_support', 100);
function remove_zoom_theme_support() {
remove_theme_support('wc-product-gallery-zoom');
}
these methods did not work for me, in Google all the suggested methods did not help, I
found where to comment out - /wp-content/plugins/woocommerce/includes/class-wc-template-loader.php,
I have line 287
// add_theme_support( ' wc-product-gallery-zoom' );
It helped me, maybe it will help someone else.
WooCommerce Version 5.6.0
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question