Hi – sorry for the delayed response on this. Just wanted to let you know I’m having a look now. thanks for providing the link!
Pokemon site! I love it. It makes me very happy to see the plugin used on a nice looking pokemon site.
I can confirm what you’re seeing and I understand the root issue. I see the links are opening the image on the first page, but for me, any page after that, the links no longer open in the lightbox.
The reason is we’re using ajax are something similar to load fresh content on the page. Our plugin is JavaScript based. When your page first loads, it looks for certain markup on the page, and updates that to make the lightbox work.
When the ajax call on later pages updates the markup, there’s nothing telling the plugin to fire again, and re-check and re-adjust markup for the lightbox to work.
So…. we need a way to make our plugin essentially re-fire its JS on each page reload for you. I’ve updated the code to specifically do this for certain common plugins, like NextGEN. Theoretically, I could update the code for this case.
But a more scalable solution is to allow users to somehow do this themselves. Otherwise, next week, someone with another plugin doing ajax calls could have the same problem.
I’ll spend some time thinking about this today and get back to you. I’ll also try to think of or prep a quick fix at the least so you can get this working.
Thanks a lot for the reply!
At least I understood the root problem 🙂 I tried to find the ajax event but I couldn’t find it 🙁 I tried to place your update event almost everywhere in the code but it didn’t work out. Unfortunately I’m not a developer and my coding skills are very bad so it would be great if you could help me to find a quick fix!
@rubenvezzoli –
So I (kind of) have a fix for this. The catch is that it is in the Pro version. I’m not sure if I’m going to fix this for the free lightboxes or not. Pro is using more modern JavaScript and is easier to work with and improve for situations like this.
I know you’re not a Pro user, and since I feel bad I’m not fixing it in the free version for you, I’m willing to offer you 6 months free for Pro. If interested, reach out at https://firelightwp.com/contact/
Otherwise, I’ll think about if I’m going to extend this to the free lightboxes and get back to you!
@firelightwp no problem, I can buy a licence. Sent you an email right now 🙂
Best,
@rubenvezzoli – I believe we’ve fully resolved this, so I’m going to mark this thread resolved. Feel free to let me know if you have more questions.
For others who come here: this was fixed by adding more generic logic that allows the the Firelight Lightbox to re-trigger after ajax calls or javascript change the page (ie, like adding new images or image links).