How to Embed a YouTube Video in WordPress

In this article, we’ll show you How to Embed a YouTube Video in WordPress. Do you want to embed videos on your WordPress site? All you need is the video’s URL. Videos bring life to your website, and they are a good way to increase visitor retention time, user engagement, and interaction.

WordPress makes it super easy to embed videos from video hosting sites like YouTubeVimeo, Facebook, Twitter, and many other social networks.

If you’re a beginner, we will show you how to easily embed videos in WordPress blog posts, pages, Elementor Pages, and sidebar widgets.

How to Embed Videos in WordPress Blog Posts and Pages

WordPress comes with a really super cool feature called auto-embeds which allows your WordPress website to automatically get the embed code from popular video hosting services like YouTube, Vimeo, etc.(List in below)

All you need to do is to paste the video URL into the WordPress editor. For example, you have to copy the YouTube URL for a video that you wanna embed.

Next, Click on the edit WordPress post or page where you want to add that video, and simply paste the URL in the content editor.

As soon as you paste the video URL, WordPress will automatically fetch the embed code and display that YouTube video inside the content editor.

You can now save your post and click on the preview button to see the embedded video in your blog post or Page.

Wasn’t that easy?

After you have added the video, you can change its settings by clicking on the edit icon.

After clicking on edit, A window will appear where you can the setting. You can adjust the video auto, loop, width, make it full-width, change alignment, and more.

After making changes, Don’t forget to click on the Update button.

WordPress can only do auto-embeds for white-listed video services and For other websites, you will still have to obtain the video’s embed code and then paste it in your blog posts or widget.

List for Video Services:

Here is a list of white-listed video services for auto embeds in WordPress Websites:

  1. Amazon
  2. Animoto
  3. CollegeHumor
  4. Crowdsignal
  5. Dailymotion
  6. Facebook
  7. Flickr
  8. Hulu
  9. Imgur
  10. Instagram
  11. Issuu
  12. Kickstarter
  14. Mixcloud
  15. Reddit
  16. ReverbNation
  17. Screencast
  18. Scribd
  19. Slideshare
  20. SmugMug
  21. Someecards
  22. SoundCloud
  23. Speaker Deck
  24. Spotify
  25. TED
  26. Tumblr
  27. Twitter
  28. VideoPress
  29. Vimeo
  31. YouTube

If you want to add a video from a website outside of this list, then you will need the full HTML embed code for the video to add to your site.

Simply copy the HTML code provided by the video website and paste it inside a ‘Custom HTML’ block in the editor.

For example, You can get embed the Code of a YouTube Video by clicking on the share button and then pasting it into your WordPress Editor inside a Custom HTML block.

How to Embed Videos in WordPress Sidebar Widgets

Just like a WordPress page or post, you can also embed your desired videos in WordPress sidebar widgets.

Simply go to the Appearance » Widgets page and add the ‘Text’ widget to a sidebar.

Inside the widget settings, you need to paste the video URL in the content area. WordPress will automatically fetch the embed code of your video and then display the video preview.

And then do not forget to click on the Save button, anyways setting will never be saved.

You can now visit your WordPress website to see the video embed in your WordPress sidebar widget.

Plugin to embed YouTube Video:

Now, We will discuss the plugin to embed youtube videos.

YouTube Embed

The YouTube Embed plugin is used for embedding YouTube videos to your WordPress website. This plugin will give you many features like adding thumbnails, autoplay, your own playlist, etc. You can dynamically change the video size for all devices and screen sizes. The plugin provides the shortcode functionality, so you will be able to insert shortcodes in posts, pages, or anywhere you want on your WordPress website.

The Youtube embed plugin allows you to set different heights and widths for the video by using this plugin. You will be able to set your desired controls for your videos. Setting up where to start and where to end the video. You can choose between different templates from the plugin setting.

Here are some questions/answers which might help you:

How do I embed a video in WordPress?

If you want to embed the video on the “post page” then copy the URL of the video and simply paste it there and your video will be embedded.
If you want to embed a video using HTML then go to your youtube video and copy the embed code from there and paste it to the HTML tab.

Why can’t I embed a YouTube video in WordPress?

Remember to check the option for Allow Embed while setting up your WordPress Website.

How do I embed a YouTube video into my website?

Follow our easy and simple steps:
1. Go to the YouTube video that your want to embed.
2. Click on the “Share” button and then click on the Embed button.
3. The HTML code will be displayed and copy it.
4. Paste the embedded HTML code to your HTML tab.
All done.


We hope you liked the article on How to Embed a YouTube Video in WordPress, Check out our article on How to WhatsApp chat in HTML website. If you find any problem, tell us in the comment section below, we will answer you ASAP.

Now you have good knowledge about what you can offer so read our guide about How to Start Freelancing in 2022 with Easy Steps Guide.

Please share your feedback in the comments. You can also suggest some topics for our upcoming blogs. We would love to hear from you. If you have any questions, you can directly ask us by visiting our contact page. Subscribe to our YouTube Channel for more updates about Freelancing.

For more on this topic, take a look at our article on How to add social media links to your youtube channel.

We hope this article helped you learn how to easily embed videos in WordPress blog posts. You may also want to see our list of the How to save, import, and export templates in elementor.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials.

4 thoughts on “How to Embed a YouTube Video in WordPress

  • February 15, 2022 at 12:43 pm

    I reside in Egypt and people here need to know this valuable information, and I have been yours for a long time. The truth is your information is very useful. I hope you continue to publish at this wonderful level for the benefit to prevail.


Leave a Reply

Your email address will not be published.