Home Forums Basel support forum Product Thumbnail Customization / Owl Slider

Product Thumbnail Customization / Owl Slider

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #43301

    jakeperrin
    Participant

    We’ve been attempting to customize the Owl slider for the thumbnails on product pages. Our goal is to show 6 centered product thumbnails, instead of 4 (primarily for desktops). The mobile functionality can stay the same.

    We’ve tried directly editing the Owl.Defaults in /js/owl.carousel.js, but the changes aren’t applying. Are there other js files we should be customizing? Please let us know if you have a suggestion for a function that would allow this customization.

    #43323

    Artem Temos
    Keymaster

    Hello,

    You can customize its parameters in the file js/functions.js, function name – initThumbnailsHorizontal. But you will have to disable JS minification option in Theme Settings -> Performance.

    Kind Regards

    #43495

    jakeperrin
    Participant

    Thank you, that worked. Does this file also have a setting to make the thumbnails centered?

    #43507

    Artem Temos
    Keymaster
    #43514

    jakeperrin
    Participant

    Thanks for the assistance.

     function initThumbnailsHorizontal() {
                        $thumbs.addClass('owl-carousel').owlCarousel({
                            rtl: $('body').hasClass('rtl'),
                            items: basel_settings.product_gallery.thumbs_slider.items.desktop,
                            responsive: {
                                979: {
                                    center: true,//emo edit
    								items: 7 //emo edit
                                },
    #43530

    Artem Temos
    Keymaster

    You are welcome. Do you have any extra questions regarding this topic?

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