Okay
  Public Ticket #1896948
Carousel image slider
Closed

Comments

  • Florian Taverniez started the conversation

    Hi team !

    I'd like to display the Carousel image slider on only 2 columns, not 3 like actually it is.

    Any idea ?
    Thanks !

  •  1,974
    Support replied

    Hey Florian

    look for this bit

    $('.carousel').owlCarousel({
    loop:true,
    margin:20,
    autoHeight:false,
    navSpeed: 600,
    nav:true,
    responsive:{
    0:{
    items:1
    },
    479:{
    items:2
    },
    1024:{
    items:3
    },
    1466:{
    items:3
    }
    }
    });

    in /js/scripts.js in Sliders() function and you can set the number of items based on the current resolution width.


    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy

  • Florian Taverniez replied

    Hi !


    Thank you very much.

    Any idea how to change a specific slider and keeping the others at 3 per row ?



  •  1,974
    Support replied

    That's a bit more complex.

    You need to specify a different class name for the specific slider so that you can initialize it separately in /js/scripts.js

    $('.specific-carousel').owlCarousel({
    loop:true,
    margin:20,
    autoHeight:false,
    navSpeed: 600,
    nav:true,
    responsive:{
    0:{
    items:1
    },
    479:{
    items:2
    },
    1024:{
    items:3
    },
    1466:{
    items:3
    }
    }
    });

    Best is to take the HTML output of the shortcode for example

    <div class="carousel "> ... </div>

    change it to:

    <div class="specific-carousel "> ... </div>

    and then add the modified HTML code to the page content instead of the shortcode.

    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy

  • XavierMesme replied

    Hi, 

    Where to place the specific Html code you mentioned in this ticket.

    Thank you

  •  1,974
    Support replied

    Hi there, 

    after you get the carousel HTML code from the page source, you modify it as recommended and then you add the HTML code to the page content. You need to make the modification to /js/scripts.js as recommended.

    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy