Created
April 30, 2014 13:58
-
-
Save tomhemsley/c92a1f94cc2ff24e218b to your computer and use it in GitHub Desktop.
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_fixed_carousel($options, $slider_id, $settings) { | |
$options['minItems'] = 4; // min number of slides that will always be displayed. Slideshow will be scaled down if necessary. | |
$options['maxItems'] = 4; // max number of slides that will always be displayed. Slideshow will be scaled up if necessary. | |
return $options; | |
} | |
add_filter('metaslider_flex_slider_parameters', 'metaslider_fixed_carousel', 11, 3); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This doesn't change the minItems value. Stays at 1. Also had to change priority to 10 to get the filter to work.