Home Forums Interstitial Overlays Embed youtube video

Tagged: 

This topic contains 2 replies, has 2 voices, and was last updated by  Manolo Macchetta 2 years, 7 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #17843

    Manolo Macchetta
    Participant

    Hello. i would like to embed a Youtube video above the signupform…
    but if i link the link the usual oembed does not work
    if i add the iframe code, the video is not centered and of coz not responsive…

    can you help me?

    #17850

    Charlie
    Keymaster

    Hello Manolo,

    Try embedding your Youtube video with this code:

    <div style="position:relative;padding-bottom:56.25%;height:0;">
    	<iframe src="//www.youtube.com/embed/VIDEO-ID-HERE" frameborder="0" style="position:absolute;top:0;left:0;width:100%;height:100%;" allowfullscreen></iframe>
    </div>

    Change VIDEO-ID-HERE to your video’s ID.

    This will make your Youtube video responsive.

    Let me know if this works for you.

    #17876

    Manolo Macchetta
    Participant

    ok it works..

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

Pin It on Pinterest