Streaming live at 10am (PST)

Full CMS Lightbox!


This would definitely be tricky, but I don’t think it’s impossible. One method would be to add a div block and have it sit along the entire bottom of the modal.

Then you can drop in a slider component and set each slide to be something like 10% width so 10 slides will show in the full width slider. From here, you can drop inline images into each slide of the slider. Then, you can create an individual interaction for each thumbnail that, when clicked, will bring up the correct main image.

Definitely complex build, but it may help you here!


Does anyone know how we can set a max height for the thumbnail displayed? Every way I’ve tried either stretches or warps the photo.

Thanks! Love this workaround.


Have you tried using object-fit:cover; for the class of your thumbnail ?


I’m super new to webflow, and am looking to embed a CMS gallery like everyone else. I’ve followed the instruction in this post, and while the lightbox appears just fine, it’s pulling in images from items in other collections, rather than images in the one collection I’m in.

It seems like it’s pulling in the Image 1 field from all collections, rather than pulling in all images for the collection I want. Adding a field is only showing individual image fields though, so I’m not sure how to get around it.

Here is the demo -

Here is a shareable link -

Here is my code -

Here is a screenshot of how my collection is set up -



I also started working on a cms gallery last night :slight_smile:

What i did was copy paste the embedblock multiple times and change the cms field within it.

My problem is when i dont fill all the fields i have an empty field in my lightbox. dont know how to fix it.

Gr Argo


Out of topic. You use huge images (2-4 mb!!) - resize the image to 1500-2000px and compress the images with

About your CMS. You put image1 as a field (So your collection is only with image1). Sorry i never use the trick from the tutorial - try to find the answer in the examples (106 answers). Or open new Q in the forum.


Yeah, that’s what I figured, I just don’t know what to switch it to. I’ll continue to keep looking.

edit: The site is just a quick test to play with webflow, so I’m not to worried about the images.


See her the original demo (From the tuturial):

CMS LIghtbox - Remove Empty Thumbnails


      if ($(this).find(".lightbox-image").attr("src") === "")         


Everything is fine, until i try to open the gallery, it is just loading.



Hey guys,

I’ve implemented this and it’s working great, but the captions don’t seem to be accepting special characters like quotation marks. They revert them over to ASCII. Any help here?

See the example at



Hey @ethanfenton,

I noticed that your site takes very long for loading. I believe its cause because of that many pictures that you are loading into the site.


Hey Guys,

Is there anyway to have a single image like this:


Where you just click it and the lightbox opens?

I got the lightbox to work but I don’t want to show every image on the page, only a single thumbnail/link block like the image above then have the images appear inside the lightbox. is this possible?


Hello oramsdesign, I do not know what I’m doing wrong and it’s not working. I think it’s a lack of programming knowledge.
Here is my shared project. Could you, please, have a look and tell me what I am doing wrong?

The page o I am working is the Gastronomia Template to show lightbox images of Gastronomia CMS and after I work in the Portfolio Template.
Thank you!


you can do this by placing the above html code and your cms lightbox into a container with the background image set to your desired thumbnail image then reduce the opacity of your html code to 0 under effects. This should make the link clickable.

This is how I got it to work on a client site but the lightbox starts at the end, which is why I’m on this thread. Hope that helps and if you can figure out a work around for fixing the display order, let me know.


Hi There!

I’ve copied the html code and out in the required fields of the cms. But it shows only the same image. What am I doing wrong?


Has anyone figured this out in 2018 for video?

I’ve tried everything, nothing will load video…

My read-only:

I also followed Samielw’s tutorial on another post, that doesn’t bring up video either… It brings up the youtube player but it won’t pull the video.

Super frustrating, love this platform and want to use it to help build friend’s and client sites, but this does not make us look good…

Would love if @webflow would just make lightbox be able to connect to the CMS…



I have the exact same issue. Were you able to hide the empty fields?


Try this piece of jquery in the “Footer Code”


Where gallery-lightbox-embed is the name of the embed element that the below code is within


Yuhu, i have a problem :partying_face:

The scrollbar is jumping to the middle of the screen when i click on a image :cold_face:
What can i do??

Here is a video of my problem -----> click me