• Uploaded, activated, selected Hide Zoom in product… nothing happens. If you have an idea why then contact me and if it ends up working I’ll update the review with pleasure. Thanks

    • This topic was modified 7 years, 2 months ago by swissquality.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author createandcode

    (@createandcode)

    Hi,
    It’s probably because your theme is overriding some core WooCommerce hooks. If you switch to the TwentySixteen theme and deactivate your other plugins other than WooCommerce does it work?

    Didnt work here aswell. Is there a way to override the forced settings?

    I already tried using my childs theme functions theme like so:

    <?php //Start building your awesome child theme functions
    
     
    remove_theme_support( 'wc-product-gallery-zoom' );
    remove_theme_support( 'wc-product-gallery-lightbox' );
    remove_theme_support( 'wc-product-gallery-slider' );
    
    ?>

    ..didnt do anything anywhere aswell.

    Please advice, thanks.

    Hi everyone,

    Actually remove_theme_support() must be called from a hook. WooCommerce plugin add these zoom, lighbox & slider supports after theme setup. Whenever by trying to remove these 3 supports in functions.php calls it before the support was actually added.

    By writing following code in your theme’s functions.php file will remove the zoom, lighbox & slider support globaly, for every product.

    
    function remove_some_woo_features(){
        remove_theme_support( 'wc-product-gallery-zoom' );
        remove_theme_support( 'wc-product-gallery-lightbox' );
        remove_theme_support( 'wc-product-gallery-slider' );
    }
    add_action( 'after_setup_theme', 'remove_some_woo_features', 99 );
    

    3rd parameter in the plugin, which is 99, makes sure that our function is called very late so it runs after WooCommerce functions.

    @createandcode please update your plugin code accordingly so it works for everyone.

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Didn’t work’ is closed to new replies.