• Resolved Nox

    (@profnox)


    Hi,

    Is there a way to remove the zoom behavior when you hover the current image in the product’s gallery ?
    I tried with remove_theme_support( 'wc-product-gallery-zoom' ); even if I didn’t add this particular support in my theme (from scratch). But it didn’t disable it.

    I found a duplicate issue here : https://www.ads-software.com/support/topic/disable-zoom-magnifying-glass/
    But unfortunately no answer has been given publicly.

    Thank you in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Nox

    (@profnox)

    Finally found out it comes from WC itself, and I had to force it, with a high priority.

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

    Hello @profnox,
    Thank you for sharing the solution with us. We will note it for future reference.
    Regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Disable zoom effect in product’s gallery’ is closed to new replies.