Skip to content

Instantly share code, notes, and snippets.

@KevinBatdorf
Created August 25, 2017 17:40
Show Gist options
  • Save KevinBatdorf/5009fd844e616eb9ea60e221e6646c99 to your computer and use it in GitHub Desktop.
Save KevinBatdorf/5009fd844e616eb9ea60e221e6646c99 to your computer and use it in GitHub Desktop.
Disable touch events on MetaSlider for FlexSlider
<?php
function add_pause_on_action($options) {
return array_merge($options, ['touch' => 'false']);
};
add_filter('metaslider_flex_slider_parameters', 'add_pause_on_action');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment