Only one slide - still scrolls
Hi, unless I'm missing an obvious option, if there is only one slide then, then in the dom it creates 3 and loops between them.
Can I stop that happening? Thanks
You need to check how many potential slides exist before calling BXSlider. You can use the .length utility in jQuery. http://api.jquery.com/length/
Something like:
// If there is more than 1 slide
if ($('.mySlideClass').length > 1)) {
// Call BS Slider as normal
}
but thats a stupid idea to make a check using the dom again through whats already executed. This should be automatically handled within bxslider
I think that problem has been solved here https://github.com/wandoledzep/bxslider-4/pull/377
thanks @magmadiver for hinting out. should be pulled into master.