Last active
August 29, 2015 14:07
-
-
Save tomhemsley/ec727e426b90cb0197a0 to your computer and use it in GitHub Desktop.
Change Filmstrip Parameters
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_change_filmstrip_parameters($params, $slider_id, $settings) { | |
if ( $slider_id == XXX ) { // replace XXX with your slideshow ID | |
$params['itemMargin'] = 0; | |
$params['maxItems'] = 5; | |
$params['minItems'] = 5; | |
} | |
return $params; | |
} | |
add_filter('metaslider_flex_slider_filmstrip_parameters', 'metaslider_change_filmstrip_parameters', 10, 3); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment