Home Forums WoodMart support forum Carousel question

Carousel question

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #57871

    Pixolab
    Participant

    Hi, is there a way to set autoplay and slide timeout to the product categories carousel?
    Exemple: https://owlcarousel2.github.io/OwlCarousel2/demos/autoplay.html
    Thanks

    #57895

    Hello,

    No, there is no option for timeout and autoplay, unfortunately.

    Best Regards

    #57946

    Pixolab
    Participant

    Hi, thank you for your reply.
    I have found the solution adding the following function in my child theme:

    if( ! function_exists( 'woodmart_get_owl_atts' ) ) {
    	function woodmart_get_owl_atts() {
    		return array(
    			'carousel_id' => '5000',
    			'speed' => '2000',
    			'slides_per_view' => '1',
    			'wrap' => 'yes',
    			'autoplay' => 'yes',
    			'autoheight' => 'no',
    			'hide_pagination_control' => '',
    			'hide_prev_next_buttons' => '',
    			'carousel_js_inline' => 'no',
    			'scroll_per_page' => 'no',
    			'dragEndSpeed' => 200,
    			'center_mode' => 'no',
    			'custom_sizes' => '',
    		);
    	}
    }

    Thanks and regards.

    #57982

    Artem Temos
    Keymaster

    Hi,

    We are glad that you found the solution. But note that this function works globally and may be applied for other carousels as well.

    Regards

Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)