Okay
  Public Ticket #338836
Carousel Responsive
Closed

Comments

  • Jannik started the conversation

    Hi,

    how can I change the carousel to show only one image on mobile sites? (currently there are two)

  •  8,847
    Tahir replied

    Hey!

    You will likely have to change the js in in "Salient/js/init.js"  and "Salient/nectar/tinymce/shortcode-processing.php" . 

    Thanks 


    ThemeNectar Support Team 

  •   Jannik replied privately
  • Jannik replied

    The most simple solution is to add this line in the init.js near function clientsCarouselInit():

    if($(window).width() < 420 && $('body').attr('data-responsive') == '1') { columns = 1; $(this).addClass('phone') }

    while '420' is the desired mobile screen size for showing one column and the 'columns = 1' is the value which shows only one column.

  •  8,847
    Tahir replied

    Thanks for posting the hack. 

    Best,

    -T


    ThemeNectar Support Team