S
S
sasha7612018-02-21 17:17:53
WooCommerce
sasha761, 2018-02-21 17:17:53

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

3 answer(s)
O
Orkhan Hasanli, 2018-02-21
@sasha761

https://createandcode.com/how-to-disable-zoom-light...
Add to functions.php
remove_theme_support( 'wc-product-gallery-zoom' );

R
Roman Kusty, 2020-08-12
@roman_tlt

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');
}

V
vomy, 2021-09-25
@vomy

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 question

Ask a Question

731 491 924 answers to any question