Empty item in Owl Carousel

VderKaiser picture VderKaiser · Sep 19, 2016 · Viewed 7.6k times · Source

I have problem with Owl carousel. I have 10 items in owl, in loop, and after 10th item, there's one extra blank item. How can I get rid of that last blank item?

Here is my js code for owl:

<script type="text/javascript">
    $(document).ready(function() {
      $("#owl-example").owlCarousel({

  navigation : false, // Show next and prev buttons
  pagination : false,
  loop : true,
  autoplay : false,
  slideSpeed : 300,
  paginationSpeed : 400,
  items : 1 }); });
</script>

Answer

Sean  picture Sean · Feb 23, 2017

I had this same problem. After some research and trial, I found that removing all whitespace in my HTML solved the issue.