Support » Plugin: WooCommerce » Can’t disable product image Zoom

  • Resolved pingram


    Using a blank theme the following doesn’t work no matter how high the priority.

    //remove undesired woocommerce features
    function please_just_remove_wc_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', 'please_just_remove_wc_features', 99999 );

    I am assuming there is something else missing like a theme declaration but having a hard time finding this info.

    Not sure why we can’t disable these options in settings like we used to. Maybe consider adding these options back to eliminate these unnecessary support threads. Thank you.

Viewing 6 replies - 1 through 6 (of 6 total)
  • stas0238


    What theme do you use ?
    Did you try to find in your theme something like add_theme_support() or ‘wc-product-gallery-zoom’ as well – if so try to comment those lines in theme and check if it will work then

    Text me back when you do this 🙂

    • This reply was modified 1 year ago by stas0238.


    As stated in the first 4 words it is a blank theme, only min needed such as stylesheet, functions.php and an index.php w/ header, content loop and footer.

    If there is no theme support defined I would assume the feature should not exist at all if it requires theme support.

    Do I need to add theme support just to remove it? Seems a bit redundant redundant. Thx



    Did you try to add firstly smth like this ?

    add_theme_support( ‘woocommerce’ );

    and then

    your function but with smaller priority (1-3)



    When I add that just above the remove, only the content renders the post editor content, no product image, add to cart button, tags or cats, just what’s in the wp content box as if it’s like a normal post.

    Plugin Support Rynald0s


    Automattic Happiness Engineer

    Thank you everyone for the wonderful help and thanks for the tip @rynald0s.

    I got it working, as it turns out it was a double declaration on the theme support via another plugin I had thought I tested while disabled but was mistaken.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Can’t disable product image Zoom’ is closed to new replies.