• Resolved gvnet

    (@gvnet)


    Hi,
    After a slide is touched or swiped using Flexslider, the slideshow pauses. This is the default flexslider behaviour.
    I would like the slideshow to resume after this. Is this possible?
    In my own instance of Flexslider, I was able to achieve this using the after function. Could this be integrated as an option with Meta Slider?

    (function($) {
    $(window).load(function() {
    $(‘.flexslider’).flexslider({
    animation: ‘fade’,
    controlsContainer: ‘.flex-container’,
    controlNav: false,
    directionNav: false,
    slideshowSpeed: 3000,
    animationSpeed: 700,
    start: function(slider) {
    slider.removeClass(‘loading’);
    },
    after: function(slider){
    slider.pause();
    slider.play();
    }
    });
    });
    })(jQuery);

    I would be happy to purchase the pro version to get this functionality.

    Many thanks.

    https://wordpress.org/plugins/ml-slider/

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

    Another method of achieving would be to use this filter:
    https://www.metaslider.com/documentation/metaslider_type_slider_parameters/

    This isn’t something we’re likely to integrate as an option in the admin UI as I think this is the first time it’s been requested.

    Many thanks,
    Dave

    Thread Starter gvnet

    (@gvnet)

    Nice one – here is the filter I used in case anyone needs it (applies to all instances of flexslider)

    //Alter meta slider flex slider settings
    function metaslider_flex_params($options, $slider_id, $settings) {
    $options[‘after’][slider] = “slider.pause(); slider.play()”;
    return $options;
    }
    add_filter(‘metaslider_flex_slider_parameters’, ‘metaslider_flex_params’, 10, 3);

    Could you please explain where to add these? I’m new to this, have already tried to paste it everywhere I could

    Thread Starter gvnet

    (@gvnet)

    This goes in your functions.php file

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Flexslider – resume slideshow after touch event’ is closed to new replies.