Thread Starter
db151
(@moddingrepair)
or alternatively put for example 10/15 seconds? 🙂
Plugin Contributor
Vagelis
(@eboxnet)
Hello you can use the function below to change the carousel settings
function v_woo_related_slider() {
if (is_product()) {?>
<script>
jQuery(document).ready(function($) {
$("#woorelatedproducts").data('owlCarousel').destroy();
var owl = $("#woorelatedproducts");
owl.owlCarousel({
items : 3,
itemsDesktop : [1000,3],
itemsDesktopSmall : [900,3],
itemsTablet: [600,2],
autoPlay: 3500,
itemsMobile : false,
});
});
</script> <?php
}
}
add_action( 'wp_footer', 'v_woo_related_slider' );
You can set autoplay to false or 15000. You can also control the carousel columns if you like ( ie you can set items to 4 etc )
Thread Starter
db151
(@moddingrepair)
perfect worked great, thank you and sorry for the trouble
function v_woo_related_slider() {
if (is_product()) {?>
<script>
jQuery(document).ready(function($) {
$("#woorelatedproducts").data('owlCarousel').destroy();
var owl = $("#woorelatedproducts");
owl.owlCarousel({
items : 5,
itemsDesktop : [1000,3],
itemsDesktopSmall : [900,3],
itemsTablet: [600,2],
autoPlay: false,
itemsMobile : false,
});
});
</script> <?php
}
}
add_action( 'wp_footer', 'v_woo_related_slider' );