A video background is a short, silent video that plays in a loop behind a heading or a button, usually at the top of a page. They have started to show up absolutely everywhere in recent years, and despite what you might assume, you don’t need a plugin or a page builder to add one in WordPress.
The Cover block that comes with WordPress handles video backgrounds just fine, and since WordPress 7.0, it can play videos from YouTube and Vimeo as well as videos you upload yourself.
Add a Cover block with a video
- In the editor, click the “+” where you want the video, and add a Cover block.
- Choose your video:
- A video you upload. Click “Upload” to add a video from your computer, or “Media Library” to pick one you’ve already uploaded.
- A video on YouTube or Vimeo. Click “Add media” in the block toolbar, choose “Embed video from URL”, paste the video’s address and click “Add video”.
- Click inside the Cover block and add the content you want on top of the video, like a heading, a paragraph or a button.

The video plays automatically, without sound and in a loop, and it fills the block. In the editor, it plays too, so you can see how the content looks on top of it.
Besides YouTube and Vimeo, the embed option also works with VideoPress, Animoto, TikTok and WordPress.tv.
Adjust how it looks
With the Cover block selected, you’ll find these settings in the sidebar:
- Overlay. Under “Styles” → “Color”, “Overlay” sets the color on top of the video, and “Overlay opacity” how strong it is. A darker overlay makes white text easier to read. It’s set to 50% by default.
- Height. Under “Styles” → “Dimensions”, set a “Minimum height”, or click “Full height” in the block toolbar to make the block fill the screen.
- Focal point. Under “Settings”, “Focal point” decides which part of the video stays visible when the block is cropped, like on a phone.
- Poster image. Also under “Settings”, “Set poster image” picks an image to show until the video has loaded. It’s always a good idea to include one.
- Width. Choose “Wide width” or “Full width” under “Align” in the block toolbar to make the video stretch wider than the text.
The focal point and the poster image only work with videos you’ve uploaded. With a YouTube or Vimeo video, the only setting under “Settings” is alternative text.

Upload or embed?
An uploaded video loads from your own site, so every visitor downloads the whole file, again and again as it loops. Keep it short and small:
- Length. 10 to 20 seconds is plenty for a loop.
- Format. MP4 works in every browser.
- Size. Smaller is better, but aim for no more than a few megabytes. Remove the audio track, since it never plays anyway, and export at 720p or 1080p rather than 4K. A free tool like HandBrake can do both.
A YouTube or Vimeo video streams from their servers instead, which takes the load off your site, and it’s the easier choice for longer videos. It’s still a good idea to avoid embedding hourlong fireplace videos, though. The trade-off of using videos from YouTube or Vimeo is less control: you can’t set a focal point or a poster image, and the video service decides what loads before it starts.
Embedding also sends your visitors’ data to YouTube or Vimeo as soon as the page loads, which matters in the EU, where GDPR may require their consent first. If that’s a concern, upload the video instead.
Keep it readable and accessible
A moving background can make the text on top of it harder to read, and for some visitors, motion is distracting or can even make them feel unwell. A few things help:
- Use a calm video. Slow movement, no quick cuts, and no flashing.
- Darken it. Raise the overlay opacity until the text is easy to read at every point in the loop, not just in the first frame.
- Don’t put anything important only in the video. It’s decoration. Visitors who can’t see it should miss nothing.
The Cover block doesn’t have a button to pause the video. From WordPress 7.2, though, background videos stop for visitors who have turned on “reduce motion” in their device’s settings, even if they turn it on while the page is open.