banner

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 in 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 it’s 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
  13. Meetup.com
  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
  30. WordPress.tv
  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 YouTube Video by click on the share button and then paste it in 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.

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.

 

2 thoughts on “How to Embed a YouTube Video in WordPress”

Leave a Comment

Your email address will not be published. Required fields are marked *