How To Embed Video in WordPress (3 Easy Ways)

Right now, videos are winning the internet. Visitors prefer watching videos rather than reading long articles. So, if you want to attract your visitors and keep them on your page, embed video in WordPress so that they can get something interesting part of your website. Even you can create video backgrounds for WordPress on your landing page to attract your customers and get leads from that with the help of the best WordPress lead-generation plugins.

This article will demonstrate how you can embed videos with a WordPress website. You can embed videos using a block editor or classic editor. We’ll also show how you can embed videos using custom CSS.

How to Embed Video in WordPress Using Block Editor

Step 1: Go to the WordPress Dashboard, then hover the cursor on the Posts, then click on All Posts.

all posts of WordPress site

Step 2: In All Posts, hover on the post where you want to embed the video, then click on Edit.

edit WordPress post

Step 3: Now, the block editor will be opened if you’re using it. Choose the position where you want to embed the video, then click on the Add Block button, and select YouTube.

If you don’t find YouTube in the first place, search for it using the search bar or click Browse all to find it.

adding youtube block in gutenberg

Step 4: Now, a YouTube section will appear. Paste the link of the video you want to add, then click Embed.

add youtube url

Step 5: After providing the URL, click on the Update button to update it. Then Your video will appear like the image below for WooCommerce color swatches.

You can also customize the video by using Advanced settings. If you want to auto-resize the smaller devices, you can do it in the Media settings.

Preview

preview after embed video in WordPress site

How to Embed Video to WordPress Using Classic Editor

Step 1: Go to the Dashboard, hover the cursor on Posts, and click on All Posts.

all posts of WordPress site

Step 2: From all posts, hover on the post you want to edit, then click on Edit.

edit WordPress post

Step 3: The classic editor will be opened if activate it and disable Gutenberg. If you’re using the block editor, you can install Classic Editor to edit it in the classic editor.

Paste the link you want to embed, and automatically the video will be embedded. Then click on the Publish button to publish the post.

Preview

preview after embed video in WordPress site

How to Embed Videos to WordPress Using Custom CSS

Step 1: Go to the Dashboard, and click All Posts.

all posts of WordPress site

Step 2: Hover on the post, and click on Edit.

edit WordPress post

Step 3: Now, the TinyMCE editor/Classic Editor will come up. Click on the Text.

Step 4: Now, paste the code of the video where you want to add the video. Then click on Visual. (We’ve got this embed code from YouTube)

embed code of youtube in a post in wordpress

Preview

preview after embed video in WordPress site

Conclusion

We hope that now you can embed video into your WordPress website. If not, let us know what problem you’re facing. Though we’ve demonstrated multiple methods to embed video, we recommend using Gutenberg. Because it sets the aspect ratio more accurately and better positions the video. Also, you can import/export Gutenberg blocks easily.


Hi, I’m Mohamed. I share delicious recipes that I have cooked and loved. I’ve been food blogging for over 10 years and have a Diploma in Nutrition. You will find many healthy recipes as well as my favourite comfort food on the blog because I believe in a balanced diet.

Related Posts

Ultimate Top 10 WordPress Paywall Plugins 2023

Are you looking for the best WordPress Paywall Plugin? WordPress paywall plugins are widely available, although not all of them are top-notch. Paywall plugins help you promote…

Start Booking Process with Availability Calendar Since Appointment Booking 1.19.0

With the release of the MotoPress Appointment Booking plugin version 1.19.0, we’ve introduced several significant improvements and enhanced flexibility to the booking form widget. Additionally, we’ve fixed bugs and implemented…

Discover Top 17 WordPress Community Themes 2023

Community or social gathering is an amazing platform where you can share your thoughts or ideas with your people. Here WordPress Community Themes can play a vital…

Ultimate Top WooCommerce Dark Theme in 2023

WooCommerce dark themes are a good option if you want your website to have a contemporary, melancholy atmosphere. Dark themes are sinister and enigmatic, whereas light themes…

WooCommerce Variable Product Attributes Setup 2023

Are you worried about how to create Radio, Label, Color, and Image Variation Swatches for WooCommerce variable product attributes? If your WooCommerce store sells a variety of…

Top Google Tag Manager WordPress Plugins 2023

Google Tag Manager WordPress plugin is a tag management plugin that can help you to put or update tags on your website. Using it, you will be…