SnippetsWoocommerceWordpress

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;
}
a.no-ajaxy {
    pointer-events: none;
    cursor: default;
}

Contact us to learn about adopting the web for your business

Jarod Thornton

Author Jarod Thornton

More posts by Jarod Thornton