Skip to content

Instantly share code, notes, and snippets.

@tomhemsley
Last active August 29, 2015 14:07
Show Gist options
  • Save tomhemsley/ec727e426b90cb0197a0 to your computer and use it in GitHub Desktop.
Save tomhemsley/ec727e426b90cb0197a0 to your computer and use it in GitHub Desktop.
Change Filmstrip Parameters
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