WordPress.org

Ready to get started?Download WordPress

Forums

Gallery to Slideshow
Play slideshow only once (3 posts)

  1. CarolineElisa
    Member
    Posted 1 year ago #

    I would like the slideshow to play just once, stopping on the last slide.

    I have tried setting the 'animationLoop' parameter to 'false', with no luck.

    This in my functions.php file:

    function my_gallery_to_slideshow_settings( $params ){
    		$params['animationLoop'] = false;
    		return $params;
    }
    add_filter( 'mv_gallery_to_slideshow_js_params', 'my_gallery_to_slideshow_settings' );

    Am I missing something?

    Thanks!

    http://wordpress.org/extend/plugins/gallery-to-slideshow/

  2. CarolineElisa
    Member
    Posted 1 year ago #

    BTW, this is the only parameter not being set out of the following (not sure if the syntax is correct, but the other settings are working!):

    function my_gallery_to_slideshow_settings( $params ){
    		$params['pauseOnHover'] = false;
    		$params['animationLoop'] = false;
    		$params['animationDuration'] = 100;
    		$params['slideshowSpeed'] = 1500;
    		return $params;
    }

    Here is the page: http://p3rpublicity.com/wordpress

  3. emilysparkle
    Member
    Posted 1 year ago #

    i would like to know how to only loop the slides one time as well. thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.