A still image says what a place looks like. A short loop of the same place says what it feels like, which is why hero sections so often move.
The Container block can take a video as its background, from YouTube, Vimeo or a file you host yourself.
Before You Start
- Edition: Pro — video backgrounds needs Nexter Blocks Pro.
- Block to enable: Container, switched on under Nexter > Blocks in your WordPress dashboard.
- A Container block with some content inside — see the Container block guide.
- A short, quiet video. A background loop should be seconds long, not minutes.
Steps
- Select your Container and set its background type to video.
- Choose the source — YouTube, Vimeo or self-hosted.
- Paste the video ID or the file URL.
- Switch mute on and loop on.
- Add a dark overlay so the text on top stays readable, then publish.
How It Behaves
The source you pick decides the markup, and the loop and mute choices are written into it.
- Measured on a published page: with YouTube chosen the container rendered
tpgb-video-youtubewithdata-muted=1anddata-autoplay=1, and the player URL carried&mute=1and&loop=1. - Self-hosted renders differently — measured,
tpgb-video-self-hostedwith the file ondata-dk-mp4. - Autoplay can be turned off. Measured: switching it off added
tpgb-video-clicktoplayand rendereddata-autoplay=0, so the video waits for a click. - Mute is not optional in practice. Browsers block autoplay with sound, so an unmuted background video simply will not start.
- Measured with Nexter Blocks Pro deactivated: this effect disappears completely and the container renders as a plain section, with nothing on the page to say why.
Limitations
- Pro only — measured with Nexter Blocks Pro deactivated, the container renders as a plain section with no video at all.
- It is the heaviest background there is. A video background costs far more data than an image, and the visitor did not ask for it.
- Mobile browsers often refuse to autoplay regardless of your settings, so the section must look right with no video playing.
- Text over moving video is hard to read. An overlay is not decoration here, it is what makes the content legible.
- Set a fallback background colour or image for the moments before the video loads, and for visitors who never get it.
Troubleshooting
The video does not play
Check mute is on — browsers block autoplay with sound. Then check Nexter Blocks Pro is active; measured, no video markup is rendered without it.
It plays on desktop but not on my phone
Many mobile browsers refuse background autoplay to save data. Design the section to look right without it.
The text on top is unreadable
Add an overlay between the video and the content and darken it until the text is comfortable.
It stops after one play
Loop is off. Switch it on — measured, that adds the loop parameter to the player URL.
The page feels slow
That is the video. Shorten it, compress it harder, or use a still image with a subtle effect such as Ken Burns instead.










