• Resolved dhoch14

    (@dhoch14)


    Does anyone know how I can turn off the autoloop? I’d like the slider to stop after the first go.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @dhoch14

    Something like this should work:

    add_filter('metaslider_flex_slider_parameters', function($options, $slider_id) {
    	// if ($slider_id != '123') return $options;
    	$options['after'] = isset($options['after']) ? $options['after'] : array();
    	$options['after'] = array_merge($options['after'], array("
    		if (slider.currentSlide == (slider.count - 1)) {
            	slider.pause();
        	}"
    	));
    	return $options;
    }, 10, 2);

    Add it to a mu-plugin file (wp-content/mu-plugins/metaslider.php) or to your functions.php theme file.

    If you want to limit it to only a specific slideshow, just add the ID and remove the //
    if ($slider_id != '123') return $options;

    • This reply was modified 4 years, 7 months ago by Kevin Batdorf.

    Hi @dhoch14

    I’ll mark this as resolved as we didn’t hear back, but feel free to reply if needed.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Turn off autolooping?’ is closed to new replies.