Streaming live at 10am (PST)

Lightbox doesn't work on exported code


#1

My Lightbox (with youtube video) works perfectly on webflow platform but when i exported the project (Zip file) the same Lightbox doesn’t work on the exported version.

On firefox it keeps loading nothing happens.
On Chrome it shows the message attached.

Do i need to adjust something?


Here is my site Read-Only: https://preview.webflow.com/preview/a-saude-a-que-tem-direito?utm_source=a-saude-a-que-tem-direito&preview=531b8ce448360f4949eb73fed5d369f9


#2

I found out the problem in case anyone is wonder.

The original code reads for the iframe (that loads the video:
"html": "<iframe class=\"embedly-embed\" src=\"//cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F1uFv9Ts7Sdw%3Ffeature%3Doembed&url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D1uFv9Ts7Sdw&image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F1uFv9Ts7Sdw%2Fhqdefault.jpg&key=96f1f04c5f4143bcb0f2e68c87d65feb&type=text%2Fhtml&schema=youtube\" width=\"940\" height=\"528\" scrolling=\"no\" frameborder=\"0\" allow=\"autoplay; fullscreen\" allowfullscreen=\"true\"></iframe>",

the embedly wasn’t loading correctly because somehow was going to file///cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F1uFv9Ts7Sdw%3Ffeature%3Doembed&url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D1uFv9Ts7Sdw&image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F1uFv9Ts7Sdw%2Fhqdefault.jpg&key=96f1f04c5f4143bcb0f2e68c87d65feb&type=text%2Fhtml&schema=youtube

The fix i made was this:
"html": "<iframe class=\"embedly-embed\" src=\"https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F1uFv9Ts7Sdw%3Ffeature%3Doembed&url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D1uFv9Ts7Sdw&image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F1uFv9Ts7Sdw%2Fhqdefault.jpg&key=96f1f04c5f4143bcb0f2e68c87d65feb&type=text%2Fhtml&schema=youtube\" width=\"940\" height=\"528\" scrolling=\"no\" frameborder=\"0\" allow=\"autoplay; fullscreen\" allowfullscreen=\"true\"></iframe>",

Changed src=\"//cdn.embedly to src=\"https://cdn.embedly...

Hope it will help someone.