owl carousel item amount config being ignored
See my example below:
$(function(e)
$("#blog-slider").owlCarousel(
// mobile
nav: false,
navText: '',
items: 2,
dots: false,
responsiveClass:true,
stagePadding: 30,
// desktop
responsive:
980:
// this isn't being listened to why!?
items:6,
slideBy: 6,
stagePadding: 0,
nav: true,
dots: false,
navText: ''
);
);
.homepage-slider
overflow: visible;
margin-top: 20px;
margin-bottom: 60px;
padding: 20px 41px 20px 40px;
border-top: 1px solid #e5e5e5;
border-bottom: 1px solid #e5e5e5;
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/owl-carousel/1.3.3/owl.carousel.css">
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/owl-carousel/1.3.3/owl.carousel.min.js"></script>
<div id="blog-slider" class="homepage-slider owl-carousel">
<div class="homepage-slider__item homepage_blog_carousel1">
<a href="#">
<div>
<img class="alignnone" src="https://via.placeholder.com/100/" alt="" width="701" height="394">
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-tag">
category tag
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-title">
A post title goes here
</div>
<div class="homepage-slider__interior post-date">
November 14, 2018
</div>
</a>
</div>
<div class="homepage-slider__item homepage_blog_carousel1">
<a href="#">
<div>
<img class="alignnone" src="https://via.placeholder.com/100/" alt="" width="701" height="394">
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-tag">
category tag
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-title">
A post title goes here
</div>
<div class="homepage-slider__interior post-date">
November 14, 2018
</div>
</a>
</div>
<div class="homepage-slider__item homepage_blog_carousel1">
<a href="#">
<div>
<img class="alignnone" src="https://via.placeholder.com/100/" alt="" width="701" height="394">
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-tag">
category tag
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-title">
A post title goes here
</div>
<div class="homepage-slider__interior post-date">
November 14, 2018
</div>
</a>
</div>
<div class="homepage-slider__item homepage_blog_carousel1">
<a href="#">
<div>
<img class="alignnone" src="https://via.placeholder.com/100/" alt="" width="701" height="394">
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-tag">
category tag
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-title">
A post title goes here
</div>
<div class="homepage-slider__interior post-date">
November 14, 2018
</div>
</a>
</div>
<div class="homepage-slider__item homepage_blog_carousel1">
<a href="#">
<div>
<img class="alignnone" src="https://via.placeholder.com/100/" alt="" width="701" height="394">
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-tag">
category tag
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-title">
A post title goes here
</div>
<div class="homepage-slider__interior post-date">
November 14, 2018
</div>
</a>
</div>
<div class="homepage-slider__item homepage_blog_carousel1">
<a href="#">
<div>
<img class="alignnone" src="https://via.placeholder.com/100/" alt="" width="701" height="394">
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-tag">
category tag
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-title">
A post title goes here
</div>
<div class="homepage-slider__interior post-date">
November 14, 2018
</div>
</a>
</div>
<div class="homepage-slider__item homepage_blog_carousel1">
<a href="#">
<div>
<img class="alignnone" src="https://via.placeholder.com/100/" alt="" width="701" height="394">
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-tag">
category tag
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-title">
A post title goes here
</div>
<div class="homepage-slider__interior post-date">
November 14, 2018
</div>
</a>
</div>
<div class="homepage-slider__item homepage_blog_carousel1">
<a href="#">
<div>
<img class="alignnone" src="https://via.placeholder.com/100/" alt="" width="701" height="394">
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-tag">
category tag
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-title">
A post title goes here
</div>
<div class="homepage-slider__interior post-date">
November 14, 2018
</div>
</a>
</div>
</div>
I specify in my desktop (980+ breakpoint) to only show 6 items. It is being ignored and showing 8. Why? What am I doing wrong?
javascript owl-carousel
add a comment |
See my example below:
$(function(e)
$("#blog-slider").owlCarousel(
// mobile
nav: false,
navText: '',
items: 2,
dots: false,
responsiveClass:true,
stagePadding: 30,
// desktop
responsive:
980:
// this isn't being listened to why!?
items:6,
slideBy: 6,
stagePadding: 0,
nav: true,
dots: false,
navText: ''
);
);
.homepage-slider
overflow: visible;
margin-top: 20px;
margin-bottom: 60px;
padding: 20px 41px 20px 40px;
border-top: 1px solid #e5e5e5;
border-bottom: 1px solid #e5e5e5;
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/owl-carousel/1.3.3/owl.carousel.css">
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/owl-carousel/1.3.3/owl.carousel.min.js"></script>
<div id="blog-slider" class="homepage-slider owl-carousel">
<div class="homepage-slider__item homepage_blog_carousel1">
<a href="#">
<div>
<img class="alignnone" src="https://via.placeholder.com/100/" alt="" width="701" height="394">
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-tag">
category tag
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-title">
A post title goes here
</div>
<div class="homepage-slider__interior post-date">
November 14, 2018
</div>
</a>
</div>
<div class="homepage-slider__item homepage_blog_carousel1">
<a href="#">
<div>
<img class="alignnone" src="https://via.placeholder.com/100/" alt="" width="701" height="394">
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-tag">
category tag
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-title">
A post title goes here
</div>
<div class="homepage-slider__interior post-date">
November 14, 2018
</div>
</a>
</div>
<div class="homepage-slider__item homepage_blog_carousel1">
<a href="#">
<div>
<img class="alignnone" src="https://via.placeholder.com/100/" alt="" width="701" height="394">
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-tag">
category tag
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-title">
A post title goes here
</div>
<div class="homepage-slider__interior post-date">
November 14, 2018
</div>
</a>
</div>
<div class="homepage-slider__item homepage_blog_carousel1">
<a href="#">
<div>
<img class="alignnone" src="https://via.placeholder.com/100/" alt="" width="701" height="394">
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-tag">
category tag
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-title">
A post title goes here
</div>
<div class="homepage-slider__interior post-date">
November 14, 2018
</div>
</a>
</div>
<div class="homepage-slider__item homepage_blog_carousel1">
<a href="#">
<div>
<img class="alignnone" src="https://via.placeholder.com/100/" alt="" width="701" height="394">
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-tag">
category tag
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-title">
A post title goes here
</div>
<div class="homepage-slider__interior post-date">
November 14, 2018
</div>
</a>
</div>
<div class="homepage-slider__item homepage_blog_carousel1">
<a href="#">
<div>
<img class="alignnone" src="https://via.placeholder.com/100/" alt="" width="701" height="394">
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-tag">
category tag
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-title">
A post title goes here
</div>
<div class="homepage-slider__interior post-date">
November 14, 2018
</div>
</a>
</div>
<div class="homepage-slider__item homepage_blog_carousel1">
<a href="#">
<div>
<img class="alignnone" src="https://via.placeholder.com/100/" alt="" width="701" height="394">
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-tag">
category tag
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-title">
A post title goes here
</div>
<div class="homepage-slider__interior post-date">
November 14, 2018
</div>
</a>
</div>
<div class="homepage-slider__item homepage_blog_carousel1">
<a href="#">
<div>
<img class="alignnone" src="https://via.placeholder.com/100/" alt="" width="701" height="394">
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-tag">
category tag
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-title">
A post title goes here
</div>
<div class="homepage-slider__interior post-date">
November 14, 2018
</div>
</a>
</div>
</div>
I specify in my desktop (980+ breakpoint) to only show 6 items. It is being ignored and showing 8. Why? What am I doing wrong?
javascript owl-carousel
add a comment |
See my example below:
$(function(e)
$("#blog-slider").owlCarousel(
// mobile
nav: false,
navText: '',
items: 2,
dots: false,
responsiveClass:true,
stagePadding: 30,
// desktop
responsive:
980:
// this isn't being listened to why!?
items:6,
slideBy: 6,
stagePadding: 0,
nav: true,
dots: false,
navText: ''
);
);
.homepage-slider
overflow: visible;
margin-top: 20px;
margin-bottom: 60px;
padding: 20px 41px 20px 40px;
border-top: 1px solid #e5e5e5;
border-bottom: 1px solid #e5e5e5;
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/owl-carousel/1.3.3/owl.carousel.css">
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/owl-carousel/1.3.3/owl.carousel.min.js"></script>
<div id="blog-slider" class="homepage-slider owl-carousel">
<div class="homepage-slider__item homepage_blog_carousel1">
<a href="#">
<div>
<img class="alignnone" src="https://via.placeholder.com/100/" alt="" width="701" height="394">
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-tag">
category tag
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-title">
A post title goes here
</div>
<div class="homepage-slider__interior post-date">
November 14, 2018
</div>
</a>
</div>
<div class="homepage-slider__item homepage_blog_carousel1">
<a href="#">
<div>
<img class="alignnone" src="https://via.placeholder.com/100/" alt="" width="701" height="394">
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-tag">
category tag
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-title">
A post title goes here
</div>
<div class="homepage-slider__interior post-date">
November 14, 2018
</div>
</a>
</div>
<div class="homepage-slider__item homepage_blog_carousel1">
<a href="#">
<div>
<img class="alignnone" src="https://via.placeholder.com/100/" alt="" width="701" height="394">
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-tag">
category tag
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-title">
A post title goes here
</div>
<div class="homepage-slider__interior post-date">
November 14, 2018
</div>
</a>
</div>
<div class="homepage-slider__item homepage_blog_carousel1">
<a href="#">
<div>
<img class="alignnone" src="https://via.placeholder.com/100/" alt="" width="701" height="394">
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-tag">
category tag
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-title">
A post title goes here
</div>
<div class="homepage-slider__interior post-date">
November 14, 2018
</div>
</a>
</div>
<div class="homepage-slider__item homepage_blog_carousel1">
<a href="#">
<div>
<img class="alignnone" src="https://via.placeholder.com/100/" alt="" width="701" height="394">
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-tag">
category tag
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-title">
A post title goes here
</div>
<div class="homepage-slider__interior post-date">
November 14, 2018
</div>
</a>
</div>
<div class="homepage-slider__item homepage_blog_carousel1">
<a href="#">
<div>
<img class="alignnone" src="https://via.placeholder.com/100/" alt="" width="701" height="394">
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-tag">
category tag
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-title">
A post title goes here
</div>
<div class="homepage-slider__interior post-date">
November 14, 2018
</div>
</a>
</div>
<div class="homepage-slider__item homepage_blog_carousel1">
<a href="#">
<div>
<img class="alignnone" src="https://via.placeholder.com/100/" alt="" width="701" height="394">
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-tag">
category tag
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-title">
A post title goes here
</div>
<div class="homepage-slider__interior post-date">
November 14, 2018
</div>
</a>
</div>
<div class="homepage-slider__item homepage_blog_carousel1">
<a href="#">
<div>
<img class="alignnone" src="https://via.placeholder.com/100/" alt="" width="701" height="394">
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-tag">
category tag
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-title">
A post title goes here
</div>
<div class="homepage-slider__interior post-date">
November 14, 2018
</div>
</a>
</div>
</div>
I specify in my desktop (980+ breakpoint) to only show 6 items. It is being ignored and showing 8. Why? What am I doing wrong?
javascript owl-carousel
See my example below:
$(function(e)
$("#blog-slider").owlCarousel(
// mobile
nav: false,
navText: '',
items: 2,
dots: false,
responsiveClass:true,
stagePadding: 30,
// desktop
responsive:
980:
// this isn't being listened to why!?
items:6,
slideBy: 6,
stagePadding: 0,
nav: true,
dots: false,
navText: ''
);
);
.homepage-slider
overflow: visible;
margin-top: 20px;
margin-bottom: 60px;
padding: 20px 41px 20px 40px;
border-top: 1px solid #e5e5e5;
border-bottom: 1px solid #e5e5e5;
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/owl-carousel/1.3.3/owl.carousel.css">
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/owl-carousel/1.3.3/owl.carousel.min.js"></script>
<div id="blog-slider" class="homepage-slider owl-carousel">
<div class="homepage-slider__item homepage_blog_carousel1">
<a href="#">
<div>
<img class="alignnone" src="https://via.placeholder.com/100/" alt="" width="701" height="394">
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-tag">
category tag
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-title">
A post title goes here
</div>
<div class="homepage-slider__interior post-date">
November 14, 2018
</div>
</a>
</div>
<div class="homepage-slider__item homepage_blog_carousel1">
<a href="#">
<div>
<img class="alignnone" src="https://via.placeholder.com/100/" alt="" width="701" height="394">
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-tag">
category tag
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-title">
A post title goes here
</div>
<div class="homepage-slider__interior post-date">
November 14, 2018
</div>
</a>
</div>
<div class="homepage-slider__item homepage_blog_carousel1">
<a href="#">
<div>
<img class="alignnone" src="https://via.placeholder.com/100/" alt="" width="701" height="394">
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-tag">
category tag
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-title">
A post title goes here
</div>
<div class="homepage-slider__interior post-date">
November 14, 2018
</div>
</a>
</div>
<div class="homepage-slider__item homepage_blog_carousel1">
<a href="#">
<div>
<img class="alignnone" src="https://via.placeholder.com/100/" alt="" width="701" height="394">
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-tag">
category tag
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-title">
A post title goes here
</div>
<div class="homepage-slider__interior post-date">
November 14, 2018
</div>
</a>
</div>
<div class="homepage-slider__item homepage_blog_carousel1">
<a href="#">
<div>
<img class="alignnone" src="https://via.placeholder.com/100/" alt="" width="701" height="394">
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-tag">
category tag
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-title">
A post title goes here
</div>
<div class="homepage-slider__interior post-date">
November 14, 2018
</div>
</a>
</div>
<div class="homepage-slider__item homepage_blog_carousel1">
<a href="#">
<div>
<img class="alignnone" src="https://via.placeholder.com/100/" alt="" width="701" height="394">
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-tag">
category tag
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-title">
A post title goes here
</div>
<div class="homepage-slider__interior post-date">
November 14, 2018
</div>
</a>
</div>
<div class="homepage-slider__item homepage_blog_carousel1">
<a href="#">
<div>
<img class="alignnone" src="https://via.placeholder.com/100/" alt="" width="701" height="394">
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-tag">
category tag
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-title">
A post title goes here
</div>
<div class="homepage-slider__interior post-date">
November 14, 2018
</div>
</a>
</div>
<div class="homepage-slider__item homepage_blog_carousel1">
<a href="#">
<div>
<img class="alignnone" src="https://via.placeholder.com/100/" alt="" width="701" height="394">
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-tag">
category tag
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-title">
A post title goes here
</div>
<div class="homepage-slider__interior post-date">
November 14, 2018
</div>
</a>
</div>
</div>
I specify in my desktop (980+ breakpoint) to only show 6 items. It is being ignored and showing 8. Why? What am I doing wrong?
$(function(e)
$("#blog-slider").owlCarousel(
// mobile
nav: false,
navText: '',
items: 2,
dots: false,
responsiveClass:true,
stagePadding: 30,
// desktop
responsive:
980:
// this isn't being listened to why!?
items:6,
slideBy: 6,
stagePadding: 0,
nav: true,
dots: false,
navText: ''
);
);
.homepage-slider
overflow: visible;
margin-top: 20px;
margin-bottom: 60px;
padding: 20px 41px 20px 40px;
border-top: 1px solid #e5e5e5;
border-bottom: 1px solid #e5e5e5;
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/owl-carousel/1.3.3/owl.carousel.css">
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/owl-carousel/1.3.3/owl.carousel.min.js"></script>
<div id="blog-slider" class="homepage-slider owl-carousel">
<div class="homepage-slider__item homepage_blog_carousel1">
<a href="#">
<div>
<img class="alignnone" src="https://via.placeholder.com/100/" alt="" width="701" height="394">
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-tag">
category tag
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-title">
A post title goes here
</div>
<div class="homepage-slider__interior post-date">
November 14, 2018
</div>
</a>
</div>
<div class="homepage-slider__item homepage_blog_carousel1">
<a href="#">
<div>
<img class="alignnone" src="https://via.placeholder.com/100/" alt="" width="701" height="394">
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-tag">
category tag
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-title">
A post title goes here
</div>
<div class="homepage-slider__interior post-date">
November 14, 2018
</div>
</a>
</div>
<div class="homepage-slider__item homepage_blog_carousel1">
<a href="#">
<div>
<img class="alignnone" src="https://via.placeholder.com/100/" alt="" width="701" height="394">
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-tag">
category tag
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-title">
A post title goes here
</div>
<div class="homepage-slider__interior post-date">
November 14, 2018
</div>
</a>
</div>
<div class="homepage-slider__item homepage_blog_carousel1">
<a href="#">
<div>
<img class="alignnone" src="https://via.placeholder.com/100/" alt="" width="701" height="394">
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-tag">
category tag
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-title">
A post title goes here
</div>
<div class="homepage-slider__interior post-date">
November 14, 2018
</div>
</a>
</div>
<div class="homepage-slider__item homepage_blog_carousel1">
<a href="#">
<div>
<img class="alignnone" src="https://via.placeholder.com/100/" alt="" width="701" height="394">
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-tag">
category tag
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-title">
A post title goes here
</div>
<div class="homepage-slider__interior post-date">
November 14, 2018
</div>
</a>
</div>
<div class="homepage-slider__item homepage_blog_carousel1">
<a href="#">
<div>
<img class="alignnone" src="https://via.placeholder.com/100/" alt="" width="701" height="394">
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-tag">
category tag
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-title">
A post title goes here
</div>
<div class="homepage-slider__interior post-date">
November 14, 2018
</div>
</a>
</div>
<div class="homepage-slider__item homepage_blog_carousel1">
<a href="#">
<div>
<img class="alignnone" src="https://via.placeholder.com/100/" alt="" width="701" height="394">
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-tag">
category tag
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-title">
A post title goes here
</div>
<div class="homepage-slider__interior post-date">
November 14, 2018
</div>
</a>
</div>
<div class="homepage-slider__item homepage_blog_carousel1">
<a href="#">
<div>
<img class="alignnone" src="https://via.placeholder.com/100/" alt="" width="701" height="394">
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-tag">
category tag
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-title">
A post title goes here
</div>
<div class="homepage-slider__interior post-date">
November 14, 2018
</div>
</a>
</div>
</div>
$(function(e)
$("#blog-slider").owlCarousel(
// mobile
nav: false,
navText: '',
items: 2,
dots: false,
responsiveClass:true,
stagePadding: 30,
// desktop
responsive:
980:
// this isn't being listened to why!?
items:6,
slideBy: 6,
stagePadding: 0,
nav: true,
dots: false,
navText: ''
);
);
.homepage-slider
overflow: visible;
margin-top: 20px;
margin-bottom: 60px;
padding: 20px 41px 20px 40px;
border-top: 1px solid #e5e5e5;
border-bottom: 1px solid #e5e5e5;
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/owl-carousel/1.3.3/owl.carousel.css">
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/owl-carousel/1.3.3/owl.carousel.min.js"></script>
<div id="blog-slider" class="homepage-slider owl-carousel">
<div class="homepage-slider__item homepage_blog_carousel1">
<a href="#">
<div>
<img class="alignnone" src="https://via.placeholder.com/100/" alt="" width="701" height="394">
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-tag">
category tag
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-title">
A post title goes here
</div>
<div class="homepage-slider__interior post-date">
November 14, 2018
</div>
</a>
</div>
<div class="homepage-slider__item homepage_blog_carousel1">
<a href="#">
<div>
<img class="alignnone" src="https://via.placeholder.com/100/" alt="" width="701" height="394">
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-tag">
category tag
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-title">
A post title goes here
</div>
<div class="homepage-slider__interior post-date">
November 14, 2018
</div>
</a>
</div>
<div class="homepage-slider__item homepage_blog_carousel1">
<a href="#">
<div>
<img class="alignnone" src="https://via.placeholder.com/100/" alt="" width="701" height="394">
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-tag">
category tag
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-title">
A post title goes here
</div>
<div class="homepage-slider__interior post-date">
November 14, 2018
</div>
</a>
</div>
<div class="homepage-slider__item homepage_blog_carousel1">
<a href="#">
<div>
<img class="alignnone" src="https://via.placeholder.com/100/" alt="" width="701" height="394">
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-tag">
category tag
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-title">
A post title goes here
</div>
<div class="homepage-slider__interior post-date">
November 14, 2018
</div>
</a>
</div>
<div class="homepage-slider__item homepage_blog_carousel1">
<a href="#">
<div>
<img class="alignnone" src="https://via.placeholder.com/100/" alt="" width="701" height="394">
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-tag">
category tag
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-title">
A post title goes here
</div>
<div class="homepage-slider__interior post-date">
November 14, 2018
</div>
</a>
</div>
<div class="homepage-slider__item homepage_blog_carousel1">
<a href="#">
<div>
<img class="alignnone" src="https://via.placeholder.com/100/" alt="" width="701" height="394">
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-tag">
category tag
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-title">
A post title goes here
</div>
<div class="homepage-slider__interior post-date">
November 14, 2018
</div>
</a>
</div>
<div class="homepage-slider__item homepage_blog_carousel1">
<a href="#">
<div>
<img class="alignnone" src="https://via.placeholder.com/100/" alt="" width="701" height="394">
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-tag">
category tag
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-title">
A post title goes here
</div>
<div class="homepage-slider__interior post-date">
November 14, 2018
</div>
</a>
</div>
<div class="homepage-slider__item homepage_blog_carousel1">
<a href="#">
<div>
<img class="alignnone" src="https://via.placeholder.com/100/" alt="" width="701" height="394">
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-tag">
category tag
</div>
</a>
<a href="#">
<div class="homepage-slider__interior post-title">
A post title goes here
</div>
<div class="homepage-slider__interior post-date">
November 14, 2018
</div>
</a>
</div>
</div>
javascript owl-carousel
javascript owl-carousel
edited Nov 14 '18 at 20:28
kawnah
asked Nov 14 '18 at 20:23
kawnahkawnah
1,12511135
1,12511135
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
I was serving an old version of the owl carousel CSS (1.3.3)
Using the correct version (2.2.1) resolved this issue.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53308201%2fowl-carousel-item-amount-config-being-ignored%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I was serving an old version of the owl carousel CSS (1.3.3)
Using the correct version (2.2.1) resolved this issue.
add a comment |
I was serving an old version of the owl carousel CSS (1.3.3)
Using the correct version (2.2.1) resolved this issue.
add a comment |
I was serving an old version of the owl carousel CSS (1.3.3)
Using the correct version (2.2.1) resolved this issue.
I was serving an old version of the owl carousel CSS (1.3.3)
Using the correct version (2.2.1) resolved this issue.
answered Nov 15 '18 at 15:04
kawnahkawnah
1,12511135
1,12511135
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53308201%2fowl-carousel-item-amount-config-being-ignored%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown