To add caption text to the Webflow CMS Lightbox Gallery, you can follow these steps:
1. Create a new Text element: In the designer, navigate to the page where you have the CMS Lightbox Gallery, and add a new Text element where you want the caption text to appear. You can style the text element according to your design preference.
2. Bind the caption text to the CMS collection: Select the Text element and go to the right sidebar panel. Under the "Settings" tab, click the blue "Bind Field" button next to the text input field. In the binding panel that appears, select the CMS collection where your gallery images are stored.
3. Configure the binding: Once you've selected the collection, choose the appropriate field from the collection that you want to use as the caption for each image. It could be a "Caption" field or any other field where you have stored the relevant information.
4. Connect the Lightbox to the binding: Select the CMS Lightbox Gallery element on your page. In the right sidebar panel, you'll find the "Settings" tab. Scroll down to the Lightbox section and click the "Caption" dropdown. Choose the binding you created in step 3. This will connect the caption text to the corresponding field in the CMS collection.
5. Test and preview: Now, you can preview your website to see the CMS Lightbox Gallery in action. Each image in the gallery will display the associated caption text, dynamically pulled from your CMS collection.
By following these steps, you should be able to add caption text to the Webflow CMS Lightbox Gallery and easily manage and update the captions through the CMS collection.