• With the new update (3.0.1) a zoom and lightbox were added to the single products pages.

    How can I disable that?

    Before you guys had an option to disable under Settings > Products > Display, which is now gone.

    Please help!
    Thanks!

Viewing 2 replies - 16 through 17 (of 17 total)
  • function my_remove_zoom_theme_support() { 
        remove_theme_support( 'wc-product-gallery-zoom' );
        remove_theme_support( 'wc-product-gallery-lightbox' );
    add_action( 'after_setup_theme', 'my_remove_zoom_theme_support', 100 );

    If none of the above are working for you, try increasing the hook priority – 100 works for me! This function is for removing zoom and lightbox, but can be easily modified to include only one or the other. Add the function to your (child) theme’s functions.php file.

    Hi, please and exist code into function php which:
    disable tap on image for zoom but with option that user still see on top right corner icon for show image in fullscreen?

    Now we try this code:
    add_action( ‘after_setup_theme’, ‘remove_pgz_theme_support’, 100 );
    function remove_pgz_theme_support() {
    remove_theme_support( ‘wc-product-gallery-zoom’ );
    }

    This disable tap to zoom, but this code hide zoom icon too, and this is not for us ideal situation ??

    • This reply was modified 6 years, 8 months ago by PepeCZ.
    • This reply was modified 6 years, 8 months ago by PepeCZ.
Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘Disable new gallery and zoom at single product pages’ is closed to new replies.