Get rid of product images mobile swipe functionality from WooCommerce single product [closed]
Everything required is located on Class WC_Frontend_Scripts source code: To target mobile devices, you can use the WordPress conditional tag wp_is_mobile(). A) For the Photoswipe functionality you have essentially 2 hooks: woocommerce_single_product_photoswipe_enabled to disable it. woocommerce_single_product_photoswipe_options to change options (see below). 1) To disable it, you will use: add_filter( ‘woocommerce_single_product_photoswipe_enabled’, ‘__return_false’ ); or targeting mobile … Read more