Embed Youtube (with params) in Pro Theme

Hi was wondering how to embed a youtube video in pro theme without it being stretched out and surrounded by black. I’d also like to be able to keep some of the parameters you can attach to the youtube url like the one that stops related videos from playing at the end.

Thanks,

Hi There,

I’ve tried the v2 video element with this embed code and it’s working perfectly:

<iframe width="560" height="315" src="https://www.youtube.com/embed/Bey4XXJAqS8" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>

Would you mind providing us with your embed code so we can try on our end?

Thank you.

Thanks for the reply. Figured it out now. Few things were going on.

I’m using the WP plugin learndash it uses the post library to make lessons and topics. I had to go into the pro settings and turn on corerstone for this post type.

Next once I could use conerstone to edit these posts types, I pasted in my youtube iframe code and wasn’t showing up the video. In the firefox console I see there error: Load denied by X-Frame-Options: youtube video url here does not permit framing.

What I did was use the direct youtube link and then inserted into the iframe code. Didn’t realize videos have a direct url and embed url. Once I used the embed url the video showed.

Thanks again,

Another couple questions if you don’t min.

  1. I was wondering if you know how to get rid of the black box/border that appears around the video in the iframe

  1. When you load the page on on a mobile device, you can see the video in the iframe and play the video but it stay the same size in the little iframe box. Do you know how to make it play full screen while in pro theme when they start the video?

Thanks

Hey Dino,

Feel free to ask questions regarding the usage of our products. I would just suggest though that you ask 1 issue per thread so they in order to avoid confusion not just to us but also to other thread readers as well. It’ll also help us focus on 1 problem at a time.

Regarding your question, please give us the URL of the page where you’ve added the video or give us screenshots of your setup so we could replicated it on our end.

Thanks.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.