Adding a video background to an Instablock

Using the following custom-coded solution you can add any public Youtube video as a video background for any of your page blocks. The video will play automatically, without sound.

Note: The video must be public in order for this solution to work. Please make sure that your video is set to Public from YouTube's settings before proceeding.

The information you will need to set this up on your landing page is the Youtube video ID and the page block on which you would want to have the video background.

How to get the Youtube video ID

youtubeVideoID2.png

NOTE: Please make sure you only copy the ID of the video, without other parts of the URL or the time parameter that is sometimes added after it.

The following code needs to be added under Settings - JavaScript, Header: 

 

Now you will need to add your own Youtube video ID in the videoID parameter

videoID.png 

And the page block on which you want to have the video background

pagesection.png

 In the example above, we are adding the video background to the first block of the page from the top. If you want to add it to the second block, you will need to replace 1 with 2, and so on if you want to add it to any other block.

The next step is to add the CSS styling for this feature, the code below needs to be added under Settings - HTML/CSS - Header:

 

Note: The video background will not be available on mobile devices or mobile screen sizes.

In case you need help with a custom functionality or any code customization that is not provided through our Help Center articles we have a Professional Services team that can help our Enterprise users. The Enterprise Solution includes Professional Services as well as additional features and services that can be seen here: https://instapage.com/enterprise-benefits