# Turn Off Product Image Zoom, Lightbox or Slider

> Disables the hover zoom, the full-screen lightbox and/or the thumbnail slider of the WooCommerce product gallery.

- Type: PHP
- Runs: Run everywhere
- Category: [WooCommerce](https://wpide.com/library/category/woocommerce/)
- Requires: WooCommerce
- Tags: woocommerce, gallery, images, product-page
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/woo-gallery-features/

## Code

```php
add_action( 'after_setup_theme', function () {
    $keep = array(
        'wc-product-gallery-zoom'     => false, // Hover zoom.
        'wc-product-gallery-lightbox' => true,  // Full-screen lightbox.
        'wc-product-gallery-slider'   => true,  // Thumbnail slider.
    );

    foreach ( $keep as $feature => $enabled ) {
        if ( ! $enabled ) {
            remove_theme_support( $feature );
        }
    }
}, 100 );
```

## Notes

Set each feature to true to keep it or false to turn it off.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Turn Off Product Image Zoom, Lightbox or Slider" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
