I use the new Multi Image Field and would like to add text to each image that shows. Captions are not yet possible but since we can give each image in the cms a alt tag, I was wondering if somebody could provide a custom code (via html embed) that could show the alt tag as normal text right next to the image.
Would be great to have a solution for this before the Webflow team comes up with a new feature.
Does anyone know how far off we are from having captions for each lightbox multi-image upload? Iāve got a client who loves this feature but not having captions per image is a dealbreaker for them.
Hard to solve this - because the gallery loads with the original JSON (So even if i add json data - nothing happens) - Long task to solve this (More freelancer job mission) + whats happen if webflow js code will change?
Anyway figure and figcaption - you get very small effect on SEO/Site semantic.
Of course you can always use any markup you want and combine with some JS plugin - like this example:
I couldnāt get it to work using any of the methods above.
My friend worked out this solution:
Add in your collection list (I changed my collection list to a grid)
Add a lightbox / image inside your collection item
In the settings for the lightbox tick āGet media from your collection nameā
Tick " Link with outer lightboxes" and type in your collection name to the group name field (if you want to be able to click through the multiple images)
Give the image inside your lightbox a class name, for this example I used āmulti_imageā
In this images settings tick "get image from your collection name
Paste the following code into your sites footer (Project settings > custom code > footer):
Make sure youāve actually given your images in the multi image field some alt text (duh)
I then added an embed to get the images to display as cover as I have a fixed size on my multi_image class. The embed goes inside the lightbox, under the image and is coded like this:
If you want to style the text thatās now displaying under your image, add some text on to your page, give it a class of ācaptionā, style it, then delete it
Hi, Hope youāre able to read this soon! How do I put the captions INSIDE the lightbox and not on the page?
Also, do you know how to display only a limit of like 3 thumbnails on the page, but then have the rest of the images still displayed when the lightbox is launched?
To be honest, I donāt actually know how you would get the text inside. Have you tried applying negative margin to the alt text? Or perhaps setting itās position to absolute and giving it a higher Z index than the image? Bear in mind you would need to set the imageās position to relative for this to work.
Re a limit on the thumbnails Iām afraid I donāt know. Might be worth a google for that one - surely someone has had to do that before! Good luck!
Hey man, Iām really sorry but I actually donāt know how to solve that. Itās a bit above my pay grade Iām afraid. Like I said, I got the original code from a friend who figured it out and then did some tweaking. Perhaps start a new thread in the forums and see if any expert can help?