Created
August 25, 2017 17:40
-
-
Save KevinBatdorf/5009fd844e616eb9ea60e221e6646c99 to your computer and use it in GitHub Desktop.
Disable touch events on MetaSlider for FlexSlider
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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