Okay
  Public Ticket #1325246
nK Carousel
Closed

Comments

  • Mitzunare started the conversation

    Currently my nK Carousel is displaying 8 items at a time.. I only have 3 items in it, so it's displaying copies which looks goofy.. Is there any way to lower the Carousel down to display only 3 of the items?

  • Mitzunare replied

    Hello? Posted this 22 hours ago w/ no response.. Please help..

  •  519
    Nikita replied

    Hi.

    I apologize for the delay in reply. I'm on a small vacation now.

    You can remove loop option from carousels using custom code. Ad this JS code in Child theme or in Youplay Options > General:

    document.addEventListener("DOMContentLoaded", function() {
        var $ = jQuery;
        $(window).on('load', function () {
            $('.youplay-carousel-no-loop').each(function () {
                var owl = $(this).data('owl.carousel');
                if (owl) {
                    owl.settings.loop = false;
                    owl.options.loop = false;
                    $(this).trigger('refresh.owl.carousel');
                }
            });
        });
    });
    

    Then you need to add youplay-carousel-no-loop classname to your carousel:

    Best regards, nK.

  • Mitzunare replied

    I did everything.. it did not work.. :(

  •  519
    Nikita replied

    Could you give me your online example with changes you made? I'll take a look.