0

In below page, I have built a gallery slider with Visual Composer. It's using Owl Carousel library.

When I enable the Lightbox option, it's not working on the first image, most of the time.

You will understand me after looking at the URL: http://www.turnabakir.com/test/index.php/portfolio-item/kayik-sahan/

Any help is appreciated.

yenerunver
  • 416
  • 1
  • 5
  • 26

2 Answers2

1

I got the same problem between the OwlCarousel and GLightbox. Because I don't want to disable the loop option I tried to re-initializing the Glightbox after the OwlCarousel calling like this:

$("#carouselboxid").owlCarousel({});

const myLightbox = GLightbox({
  selector: ".elemclass-lightbox"
});
Andras Barth
  • 74
  • 11
0

I just disabled looping attribute of OwlCarousel and the problem is solved. It was something related to looping. My guess is when Owl was cloning items one after another, binding of Lightbox was affected. It is not the answer of my question, but my problem is solved, so topic can be closed.

yenerunver
  • 416
  • 1
  • 5
  • 26