Viewing 1 replies (of 1 total)
  • Plugin Author ishitaka

    (@ishitaka)

    Hi,

    I would like to consider adding it.
    In addition, the following code can be used to stop it on hover.

    In the theme functions.php,

    function my_xo_slider_script_parameter( $params, $slide, $key ) {
    	if ( 1234 == $slide->id ) {
    		$params['autoplay']['disableOnInteraction'] = false;
    		$params['autoplay']['pauseOnMouseEnter'] = true;
    	}
    	return $params;
    }
    add_filter( 'xo_slider_script_parameter', 'my_xo_slider_script_parameter', 10, 3 );

    * 1234 in the code is the slider ID.

Viewing 1 replies (of 1 total)
  • The topic ‘Autoplay after hover’ is closed to new replies.