skip to Main Content

Disable Touch Motions on Lightbox

By default the included lightbox script in the theme (Fancybox 3) includes touch motion support for swiping between photos. If you wish to disable touch support you can via the following code.

 * Disable Touch Motions on Lightbox.
 * @link
add_filter( 'wpex_lightbox_settings', function( $settings ) {
	$settings['touch'] = false;
	return $settings;
} );
All PHP snippets should be added via child theme's functions.php file or via the Code Snippets Plugin (or alternative plugin)
Back To Top