My HTML Embed code to add a video is not working when I publish the site, although it works for the other videos I have in place. I had some code on the site I added as an embed months ago that is still there.
However when I add some new code to an embed this week, it doesn’t work.
I used your code in my own testbed project, published it, and it did work just fine. I then opened your read-only link and added the code to a new HTML Embed, and it worked fine in the designer (obviously I can not test the published version though).
Can you try re-adding the element and publishing the site to a webflow.io domain so I can take a look at a published version and see what’s different? Let me know where you place it so I know where to look if it still doesn’t load.
Thanks for providing this. I took a look at it, and I have good and bad news
There is something inside your custom code that is just destroying any sort of sensible sizing. Each nested element <div> to <figure> to <iframe> all have some really odd positioning / sizing going on. I tried a few different ways of modifying this and didn’t land on a solid solution, but some combination of this along with the container you have it placed in is causing an issue.
So, you could dive into this custom code, figure out where the issue lies by process of elimination, and fix it. However, there is a much easier solution. It’s a band-aid, but it does end up showing properly if you just define a width to the HTML embed in the designer.