Youtube Videos not showing up in codepen

For some reason any youtube video that i add to code pen doesn’t show up, theres simply just a white border with no actual video inside of it. I have searched everywhere and i cant seem to find an answer to this problem, its as if im experiencing something that nobody else has encountered…

Heres a link to my codepen. https://codepen.io/Modestas/pen/aBPQem The video is supposed to be on the right side.

Any response will be appreciated, thank you so much.

1 Like

You have to change the src to “https://www.youtube.com/embed/PRTrXXTgKLg” to enable embedding.

(If you look in the Dev Tool you’ll see the “error X-frame options to same origin” )

1 Like

You wrote an extra double quote

Also you forgot the quotes around your img src.

(and I put one too many @Oxyrus :slight_smile:)

Thanks, how do i learn to embed videos so that i’m able to do it on my own next time?

Damn, I’m really silly, I wanted to give you the link and instead I embedded the video…

All you have to change is after: https://www.youtube.com/ + “embed/reference of your video” (so here it is embed/ PRTrXXTgKLg).

Thanks man, helped alot!

1 Like