hayatu89
(Hayatu Mohammed)
June 14, 2016, 12:37pm
1
I have found a little snippet to help me put a caption when the video lightbox is clicked but all I can get is a single line of text. How can I make the caption take in more text? I found the code snippet here
Community resources
Webflow Tips
A Webflow lightbox can be captioned when you are using an image, but not when you are linking to external media embed (e.g.: video from youtube, vimeo, etc.). Today, I present another tutorial on how to add a caption to a lightbox, when you are...
Reading time: 1 mins 🕑
Likes: 3 ❤
Here is my public share link: https://preview.webflow.com/preview/ummi-yakubu?preview=fb850bf8e65afb81e21aafd27975bbc6
(how to access public share link )
samliew
(webflowexpert.com)
June 14, 2016, 2:41pm
2
Here is my public share link: LINK
(how to access public share link )
Your links are not working. Please click the link for instructions.
hayatu89
(Hayatu Mohammed)
June 14, 2016, 2:58pm
3
samliew
(webflowexpert.com)
June 14, 2016, 3:36pm
4
You have to remove
.w-lightbox-caption {
white-space: nowrap;
overflow: hidden;
}
samliew
(webflowexpert.com)
June 14, 2016, 3:39pm
6
Long text may be cut off if the browser window height is too small.
hayatu89
(Hayatu Mohammed)
June 14, 2016, 3:48pm
7
OK…that bit of code is not a part of what I saw on your guide, and I cannot find it in my custom code
samliew
(webflowexpert.com)
June 14, 2016, 3:50pm
8
Oops, in that case you have to use it as an override. Simply reverse the styles, and add on to the code in the guide.
.w-lightbox-caption {
white-space: initial;
overflow: initial;
}
hayatu89
(Hayatu Mohammed)
June 14, 2016, 4:08pm
9
and now I’ve run into the browser height issue. Can I reduce the height of the video so I can see the caption?
system
(system)
Closed
August 14, 2016, 1:20pm
10
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.