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


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, Footer: 


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


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


 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 an Implementation Services team that can help our Converting users. The Converting Solution includes Implementation Services as well as additional features and services that can be seen here: