Plugin Contributor
Vagelis
(@eboxnet)
Hello there, i am not sure what code you used and where you added it but try this one:
function v_woo_related_slider() {
if (is_product()) {?>
<script>
jQuery('#woorelatedproducts').trigger('destroy.owl.carousel');
jQuery(document).ready(function($) {
var owl = $("#woorelatedproducts");
owl.owlCarousel({
items : 4,
itemsDesktop : [800,3],
itemsDesktopSmall : [900,3],
itemsTablet: [600,2],
autoPlay: 3500,
itemsMobile : false,
});
});
</script> <?php
}
}
add_action( 'wp_footer', 'v_woo_related_slider', 90 );
Should work
I used same code last time and it works but i now it is not working
Plugin Contributor
Vagelis
(@eboxnet)
Where did you add the function?
i wrote same code in functions.php but it is not working i want to increase item 4
Plugin Contributor
Vagelis
(@eboxnet)
Hello @mahi8900 please start your own topic so we can solve your issue. Make sure you provide a URL and your configuration settings. Thanks.