In my websites, I created a feature where an owl-carousel opens a popup-gallery-ajax window: very useful when lots of photos and lots of text content.
Unfortunately, just after one loop is completed, a click on the following image of the carousel only open the text content in the window (not sexy at all!).
At the moment, I can fix it by disabling the loop (“loop”: false), which was done on another website: http://www.itxasoa-osteopathe.fr/.
I hope I described the issue properly and you can help me resolve this issue.
Best regards, Philippe
The problem is that the magnificPopup is loading before the clone of owl carousel items (loop).
In that case we need to execute the Ajax on Modal js code after document is ready. For this please change the code to this below: