Website Building » Shopify » How Do I Embed a YouTube Video on Shopify?

How Do I Embed a YouTube Video on Shopify?

Last updated on January 13, 2023 @ 3:46 pm

YouTube is a great way to share your product, or company with the world. You can use it to show off how your products are used, or to simply provide some valuable information about your business.

If you have a YouTube channel, you can easily embed your videos on Shopify. Here’s how:

In the Shopify Admin, go to Online Store > Themes.

Find the theme you want to edit, and then click Actions > Edit code.

In the Layout directory, click on the theme.liquid file.

Scroll down to the <body> tag and add the following code where you want the video to appear:

PRO TIP: If you are planning to embed a YouTube video on your Shopify store, there are a few things you need to be aware of. First, make sure that you have the correct copyright permissions in place. Without these, you could be opening yourself up to legal action. Second, be aware that Shopify’s terms of service do not allow for certain types of content to be embedded on stores. This includes content that is sexually explicit, violent, or otherwise offensive. If you embed this type of content on your store, it could be taken down without warning. Finally, keep in mind that YouTube videos can slow down your store’s loading time. If you have a lot of videos embedded on your store, it may take longer for customers to see your products and make a purchase.

<div>
{{ video | iframe }}
</div>

Replace VIDEO_ID with the actual ID of the YouTube video you want to embed. For example:

<div>
{{ oHg5SJYRHA0 | iframe }}
</div>

Save your changes.

Dale Leydon

Dale Leydon

Sysadmin turned Javascript developer. Owner of 20+ apps graveyard, and a couple of successful ones.