• Hello! i am using your plugin to show related products by tag `function v_woo_related_slider() {
    if (is_product()) {?>
    <script>
    jQuery(document).ready(function($) {
    $(“#woorelatedproducts”).data(‘owlCarousel’).destroy();
    var owl = $(“#woorelatedproducts”);
    owl.owlCarousel({
    items : 4,
    itemsDesktop : [1000,3],
    itemsDesktopSmall : [900,3],
    itemsTablet: [600,2],
    autoPlay: 3500,
    itemsMobile : false,
    });
    });
    </script> <?php
    }
    }
    add_action( ‘wp_footer’, ‘v_woo_related_slider’ );`
    my theme is flatsome and i am having issues with the wp_footer function (as the site is already in production i have removed the code)
    what i need to do is to prevent owl slider to move, and remove the touch action in mobile do you think that you could help me with this?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author peachpay

    (@peachpay)

    Hi @eperalta!

    The documentation for the Owl Carousel mentions two options that might be able to help: https://owlcarousel2.github.io/OwlCarousel2/docs/api-options.html

    rewindNav set to false should prevent the moving, as long as all items are showing.

    touchDrag set to false should remove the touch action on mobile.

    This plugin uses Owl Carousel 1, whereas the documentation is for Owl Carousel 2. That’s why there is no rewindNav option listed on the page, but I am pretty such that’s what it’s called in version 1.

Viewing 1 replies (of 1 total)
  • The topic ‘Re init slider code’ is closed to new replies.