We're merging with GenerateBlocks! Learn more here.

Support Forum

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support Carousel animation Reply To: Carousel animation

#20279
elvin
Moderator

1.) It should work on either functions.php or code snippet. Perhaps it was saved but is not activated?

2.) Here’s a code that answers both.

add_filter( ‘wpsp_carousel_args’, function( $args, $settings ) {
if ( 160757 === (int) $settings[‘list_id’] ) {
$args[‘autoplay’] = true;
$args[‘autoplaySpeed’] = 100;
}
return $args;
}, 10, 2 );

The autoplaySpeed value controls the speed in milliseconds. The if condition applies it to the specific WPSP list ID. Just replace 160757 with your WPSP list ID.