
Videos make blog posts more engaging and can explain in two minutes what takes a thousand words to write. The good news: adding a YouTube video to WordPress is very easy. You do not need any code or plugin.
| Method | Best for | Difficulty |
|---|---|---|
| Paste the URL | Quick embeds | Easiest |
| YouTube Embed block | Adding a caption or settings | Easy |
| Embed code | Custom size or start time | Medium |
| Lazy load plugin | Faster pages with many videos | Easy |
Method 1: Paste the YouTube URL (Easiest)
- On YouTube, click Share under the video and copy the link.
- In the WordPress block editor, click where you want the video.
- Paste the link on its own line and press Enter.
WordPress turns the link into an embedded video automatically. Make sure the link is on its own line and is not a clickable text link.
Method 2: Use the YouTube Embed Block
- Click the + button and search for YouTube.
- Add the YouTube block and paste the video URL.
- Click Embed.
- Use the toolbar to set alignment (for example, center or wide), and add a caption below the video if you like.
In the block settings, turn on Resize for smaller devices so the video fits phones nicely.
Method 3: Use the Embed Code
Use this method if you want a fixed size, a start time, or privacy-enhanced mode.
- On YouTube, click Share, then Embed.
- Choose options like Start at (a specific time) and Enable privacy-enhanced mode (uses youtube-nocookie.com, so YouTube does not set cookies until the visitor plays the video).
- Copy the code.
- In WordPress, add a Custom HTML block and paste the code.
- Click Preview to check it.
To center the video, wrap the code in a container with text-align: center, or simply use Method 2 and choose Align center.
Method 4: Lazy Load Videos for Speed
Each YouTube embed loads extra scripts, which can slow pages with several videos. A plugin like WP YouTube Lyte shows a lightweight preview image and only loads the full player when someone clicks play. Many caching plugins, such as WP Rocket, also include a YouTube lazy load option.
Tips for Using YouTube Videos in Posts
- Only embed videos that add value to the post.
- Add a short summary or key points below the video for readers who prefer text (and for search engines).
- Embed your own videos when possible to grow your channel.
- Avoid autoplay. It annoys readers.
Want to embed other content? See how to embed PDF files in WordPress.
Frequently Asked Questions
How do I embed a YouTube video in WordPress?
Copy the video URL from YouTube and paste it on its own line in the block editor. WordPress embeds it automatically.
Why is my YouTube video not embedding?
Make sure the URL is on its own line and is not a clickable link. Also check that the video owner allows embedding.
How do I center a YouTube video in WordPress?
Select the YouTube block and choose Align center from the toolbar.
Do YouTube embeds slow down WordPress?
They can, especially with several videos per page. Use a lazy load plugin so the player loads only when clicked.
Leave a Reply