captionSelector: + figcaption, error when missing (null)
-
Hi,
first of all i want to thank you for the great lightbox script!
I use the plain JS (not the plugin) inside a WordPress site. Here I have a gallery with many images that link to their media files.
Up to here everything works wonderfully. Now I want to use the caption and select it with
captionSelector: '+ figcaption', captionType: 'text'
This also works great, BUT only if all elements have a caption. In my case there are only some and simplelightbox hangs on them.
TypeError: Cannot read properties of null (reading 'matches')
Is there a way to prevent this?
Many thanks and best regards
Patrick
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘captionSelector: + figcaption, error when missing (null)’ is closed to new replies.