Youtube video

Afternoon,

Can I make the YouTube video full size or at least sqaure-ish?

Example - https://www.twoscotsabroad.com/sxsw-for-free/

Many thanks
Gemma

Hello Gemma,

Thanks for asking. :slight_smile:

Video is using a 100% width of available content area. However, you can change the height of the same to make look better. Either you can change the height right inside YouTube embed code or use following CSS under X > Theme Options > CSS:

iframe {
    height: 400px;
}

Thanks.

Thank you.

If I put this in CSS will to impact on anything else?

Where is YT code would it go: https://www.youtube.com/watch?time_continue=9&v=bPryFT8idxw

Hello @twoscotsabroad,

Thanks for updating thread. :slight_smile:

  1. If you place the CSS code I gave you, it will impact iframe sitewide. In case you want to limit the changes to sxsw-for-free post, then please use following code:

    .postid-5557 iframe {
    height: 400px;
    }
    Please note that in above code I have used postid selector to limit the changes to post having id 5557. You can take a look at following article to know post id:


2.Can you please elaborate your section question?

Thanks.

Either you can change the height right inside YouTube embed code <— in response to this action.

Where would YT code go: https://www.youtube.com/watch?time_continue=9&v=bPryFT8idxw

Hello @twoscotsabroad,

Thanks for updating thread. :slight_smile:

Yes, absolutely. You can change the height inside embed code. You can place the embed YouTube code inside Video Element. https://cloudup.com/cAHm3StnyRf

Please let me know if that answers your question.

Thanks.

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