youtube video

It is proven that information is perceived better by watching videos than reading a long one-piece text. Magento websites are not an exception. So, it's your cue to consider adding videos to your content, too.

There are multiple options to add YouTube videos in Magento. Starting from the default means and moving on to the advanced tools with video rich snippets, you can find the best solution for your needs. 

Today, we'll cover both options to make your journey easier. Their features and performance metrics vary, so there's a lot to unveil.

Ready to get started?

How to Add YouTube Video in Magento?

You can use the WYSIWYG editor or page builder for content management. Fortunately, both of them offer a media tool to add audiovisual elements.

So, to add a video in Magento:

1. Navigate to the place where you'd like to insert a video and click on the Insert/edit media icon on the editor's toolbar.

insert media icon

2. Enter the video's link in the Source folder and specify its Width and Height in the General tab.

adding video url in magento

3. Switch the tabs and Embed the code if this option works better for you.

embed video in magento

4. Define the Alternative source URL and Media poster in the Advanced tab. However, these fields are optional so you may leave them empty.

advanced settings to add video

Save an entity you are editing once you add all the details. Now you can check out how the video is displayed on the storefront.

youtube video in the content

You probably see that the video on the storefront could use some improvement. There's not much you can do without editing the code. Yet, we have a better alternative for you.

How to Enhance Videos in Magento?

Videos have immense potential if you use them properly. Sadly, you have limited options in the default Magento.

But the  Magento 2 YouTube Widget makes up for it. Let's see what additional options you can get with this module.

Just like other Magento 2 widgets, the YouTube widget can be added to any block reference in your store. At the same time, you can insert it directly in your content since it's available in the list of widgets.

Magento 2 YouTube widget

The YouTube widget allows you to do the following:

  • Specify the YouTube Video URL  
  • Select whether It`s a Short Video
  • Adjust the Width and Height for better proportions
  • Set what time a video should Start At

youtube widgets settings

  • Define if you'd like to Repeat (loop) a Video
  • Enable or disable the Related Videos display
  • Specify if you want to Allow a full screen
  • Choose the Preview Image Quality
  • Select the Preview Image Size

  setting up youtube widget

These options give you more flexibility when adding a video in Magento. You have more control over the video display and can adjust it to your specific needs. 

The YouTube Widget also comes with the rich snippets functionality.

Here you can set the Name, Description, Upload Date and Duration of a video which will be displayed in the search results. You can't control Google algorithms, but at least you have a say.

video structured data

Note: if you want to add product video rich snippets automatically get the Magento 2 Rich Snippets Extension and stand out in SERP!

Once all the fields are ready, press the Insert Widget button, save a page and check out your results.

youtube widget in the frontend

It already looks better, doesn't it?

On top of that, this module takes care of the webpage speed. It has video and video image lazy load. So the video content starts loading only when a customer clicks the play button.

Besides, it optimizes your product videos. You can choose to Replace YouTube Iframes In Product Descriptions and select the Preview Image Quality

youtube video extension settings

With the provided tips, you can add YouTube videos in Magento in a matter of seconds. Besides, you do not only make your content more exciting. You optimize your product page for better speed and customer involvement.