Created
August 26, 2014 10:21
-
-
Save tomhemsley/7f80d70da35cb1c3beb1 to your computer and use it in GitHub Desktop.
Meta Slider - Flex Slider Pause / Play button
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
function metaslider_flex_params($options, $slider_id) { | |
$options['pausePlay'] = "true"; // enable pause/play | |
$options['pauseText'] = "'Pause'"; | |
$options['playText'] = "'Play'"; | |
$options['controlsContainer'] = "'#metaslider_container_100'"; // change 100 to your slideshow ID | |
return $options; | |
} | |
add_filter('metaslider_flex_slider_parameters', 'metaslider_flex_params', 10, 2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment