function postsCarousel() {
var checkWidth = $(window).width();
var owlPost = $(".owl-carousel-news");
if (checkWidth > 767) {
if(typeof owlPost.data('owl.carousel') != 'undefined'){
owlPost.data('owl.carousel').destroy();
}
owlPost.removeClass('owl-carousel');
} else if (checkWidth < 768) {
owlPost.addClass('owl-carousel');
owlPost.owlCarousel({
items:1,
dots:false,
loop:true,
touchDrag : false,
mouseDrag : false,
smartSpeed: 700,
nav:true,
navText: ['<i class="flaticon-back"></i>','<i class="flaticon-next"></i>']
});
}
}
postsCarousel();
$(window).resize(postsCarousel);
Решил с помощью такого условия для owl carousel