Skip to main content

Disable Zoom and Lightbox in Woocommerce Product Page

I couldn’t find the exact solution so this will have to do πŸ™‚

add_filter( 'woocommerce_single_product_zoom_enabled', '__return_false' );
add_filter( 'woocommerce_single_product_zoom_options', 'custom_single_product_zoom_options', 10, 3 );
function custom_single_product_zoom_options( $zoom_options ) {
    // Disable zoom magnify:
    $zoom_options['magnify'] = 0;

    return $zoom_options;
} {
    pointer-events: none;
    cursor: default;

Contact us to learn more about Adopt the Web for your business

Author Jarod Thornton

More posts by Jarod Thornton