I am developing a child theme of Storefront (WooCommerce). In the product page, I display all product images one above the other.

But the user can still swype right, as if the image slider is still active.

I would like to deactivated this swype motion on mobile (when the user swypes to the left, I want the product images not to move).

Can you help me achieve this ?



Ok I found the solution, with this code in functions.php:

add_action( 'after_setup_theme', 'remove_hemen_theme_support', 100 );
function remove_hemen_theme_support() { 
    remove_theme_support( 'wc-product-gallery-zoom' );
    remove_theme_support( 'wc-product-gallery-lightbox' );
    remove_theme_support( 'wc-product-gallery-slider' );

The line remove_theme_support( 'wc-product-gallery-slider' ); deactivate the slider.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.