• Resolved KaosconK

    (@kaosconk)


    Hi!
    I’m using carousel on my site to show diferent profiles. I changed the CSS and I add a border of 4 px to each pic. http://insomnemagazine.com/

    The problem is that I don’t know how to set a determinated items to show per pass. This means that when I click on an arrow, the animation goes to the end of the items, only showing the fisrt and last items. I can’t stop in the middle items.

    Thanks!!

    https://ww.wp.xz.cn/plugins/ml-slider/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi there,

    Could you try adding the following code to your functions.php page:

    function metaslider_flex_params($options, $slider_id, $settings) {
        if ($slider_id == 5) { // check for slider ID (optional)
            $options['minItems'] = 11;
            $options['maxItems'] = 11;
        }
        return $options;
    }
    add_filter('metaslider_flex_slider_parameters', 'metaslider_flex_params', 11, 3);

    Thanks,
    Dave

    Your slider ID is 46, so change

    if ($slider_id == 5) { // check for slider ID (optional)

    to

    if ($slider_id == 46) { // check for slider ID (optional)

    Thread Starter KaosconK

    (@kaosconk)

    It works but there is a problem, my images become very big and don’t respect the width and height fixed.

    It works more or less if I set “carousel margin: 0px”, but some imgages are shown as a half.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Set Carousel Limits’ is closed to new replies.