How to Add a Video to WordPress Without Slowing Down Your Site

Last updated November 24, 2026

The best way to add a video to WordPress is to host it on a video service and paste its embed code into a Custom HTML block. Your site stays fast, and the video plays well on every device.

Why not upload the video to the Media Library?

WordPress lets you upload video files, but it is rarely a good idea for anything more than a tiny clip:

  • Your site gets slower. Every view streams the full file from your hosting, which is built for web pages, not video.
  • Phones get the same big file. There is no automatic lower quality for slow connections, so the video may stop and buffer.
  • You may hit hosting limits. Many hosting plans limit upload size, storage and monthly bandwidth.

A video host fixes all three. The video streams from the host's servers, and visitors get the right quality for their screen and connection.

Step 1: Get your embed code

  1. Create an EmbVid account (free 3-day trial, no deposit).
  2. Click Upload Video and drop in your file.
  3. When it's ready, go to My Videos, open the video and click Copy Embed Code.

For a video that fills the width of your post and fits phones, use this version of the code and swap in your own video link:

<iframe src="https://embvid.com/embed/abc123" style="width:100%;aspect-ratio:16/9;border:0" allow="fullscreen" allowfullscreen loading="lazy"></iframe>

Step 2: Paste the code into WordPress

In the block editor (Gutenberg)

  1. Open the post or page where you want the video.
  2. Click the + button to add a block.
  3. Search for Custom HTML and select it.
  4. Paste your embed code into the block.
  5. Click Preview in the block toolbar to check it, then Update or Publish.

Use the Custom HTML block, not the Video block. The Video block is for files in your Media Library.

In the classic editor

  1. Open the post or page.
  2. Switch from the Visual tab to the Text tab.
  3. Paste the embed code where you want the video, then save.

In Elementor

  1. Edit the page with Elementor.
  2. Drag the HTML widget onto the page.
  3. Paste the embed code into the widget, then click Update.

Video not showing? Check these

Your user role can't add iframes

WordPress removes iframe code for users who are not allowed to post unfiltered HTML. This usually affects Contributors, and Editors on multisite networks. Ask an Administrator to add the video, or ask them to change your role.

The video is limited to other websites

If you set Allowed Websites or Allowed Domains in EmbVid, make sure your WordPress site's domain is on the list. Otherwise the video won't play there.

A plugin or cache is showing an old page

If you use a caching plugin, clear the cache after adding the video, then reload the page.

Tips for videos on WordPress

  • Keep loading="lazy" in the code for videos lower down the page, so your page loads faster.
  • Brand the player. In EmbVid's Player Settings, pick your brand color and choose which controls show.
  • Protect your videos. Add your site under Allowed Websites so other sites can't use your videos and your streaming.
  • Make money from views. In Ad Settings you can run your own video ads, and we take 0% of what you earn.

What it costs

EmbVid is pay as you go: about $2 per TB streamed plus a small storage fee, with no monthly fee. A 2-minute video watched 2,000 times a month costs around $0.30. See how much video hosting costs for more examples, or try the pricing calculator.

Add your first video now

Start your free 3-day trial, upload a video and paste it into a WordPress post. Not on WordPress? Read how to embed a video on any website.

Ready to host your videos?

Start your free 3-day trial today. No deposit required.

Start Free Trial