Full CMS Lightbox!

Hi Diarmuid,

I have tried to input your jquery code snippet and unfortunately, it does not do the job for me.
https://preview.webflow.com/preview/skphotography?utm_source=skphotography&preview=df74f9cc36936ad9e876d004de327134
https://skphotography.webflow.io/collections/montauk

If you follow home>work>montauk (or any other collection) and click on the image this presents a lightbox bound to the CMS (collections). The empty images show on the thumbnails of the lightbox, but also cause the lightbox to error and continually try to find that image, showing the loading icon.

I have pointed the jquery to the specific embed element class “html-embed-lightbox” and put in the footer of the site level custom code, but it still not getting rid of the empty images. Any help would be massively helpful.

$(".html-embed-lightbox:has(img[src=''])").remove();

Cheers for your time in advance!

1 Like