Video on Your Website: How to Place an Embed Code

All hosting services provide embed codes that let you insert your marketing videos into your web pages. An embed code is simply a small piece of computer code that activates the video player and displays it in the context of your web page.

However, inserting an embed code is often easier said than done because you have to deal with certain technical details on your website. You paste embed codes (the pieces of HTML code) into the appropriate view in your content management system to make them work.

Because you have many different ways to build a website, refer to the documentation of your site’s content management system to figure out exactly how to do it.

To place an embed code from a video hosting service (such as Wistia) into a page in a content management system (such as Drupal), follow these steps:

In your web browser, log in to your video hosting service.

Find the video you want to embed, and click the video name.

Click the Embed link below the player.

On the next screen, select these options:

Player size: The default size of 640 x 360 pixels may be too big for your page.

Player options: Choose whether to show the Play button and other controls.

Copy the embed code at the top by choosing the Edit@→Copy command from your browser’s menu.

In your web browser, visit your website and log in as a user who has editing rights.

Visit the page where you want to add the video.

Click the Edit link below the page title.

Scroll to the Body section of the page, and click the Source button (to paste HTML code).

This step shows you the HTML version of your page.

Find the spot where you want to place your video.

If you’re unfamiliar with HTML, simply look at the page text to locate the spot.

Choose Edit→Paste to paste the embed code.

Scroll down and click Save.

You should now see the video in your page. If the video doesn’t appear immediately, reload the page.

Dummies Insider

Sign up for insider news on books, authors, discounts and more content created just for you.