Jānis Skarnelis

Results 183 comments of Jānis Skarnelis
trafficstars

Hi, Sorry, I am right now focused on the next major release (you can preview it here - http://fancyapps.com/next/). I will take a look afterwards. To implement smth like this,...

Hi, If you are looking for official WP plugin, then it is not currently available. You can add fancybox the usual way.

Hi, You have lots of JavaScript errors on your page. The first thing you should do is to get rid of them, because any JS error can potentially prevent further...

One of the best features of the Fancybox has always been ease of use. For v2, all you had to do is 1) load all files; 2) execute `$(selector).fancybox();` 3)...

@ExileofAranei Sorry, fancybox5 is around the corner and will use the CSS variable as you suggested. You might be surprised, but it took almost a year of full-time work to...

Hi, thanks for the feedback, I'll take it into account.

@gyurmey2 Yes, but it will be like this: ```js Fancybox.bind('[data-fancybox="gallery"]', { caption: function (fancybox, slide) { const figurecaption = slide.triggerEl?.querySelector( "figurecaption" ); return figurecaption ? figurecaption.innerHTML : slide.caption || "";...

I've also created a new section in the documentation - https://fancyapps.com/fancybox/captions/

Simply replace selector here - ```slide.triggerEl?.querySelector("figurecaption")``` with the one that works for you, like `slide.triggerEl?.parentElement.querySelector("figurecaption")`. Basically, `slide.triggerEl` will be your link and then you use that to find your source...

I somehow hoped that you will figure it out that you simply need to add parentElement. On Sun, 5 Mar 2023 at 18:50, Marius ***@***.***> wrote: > Unfortunately it doesn't...