How to embed a video on your site

In this article:

How to generate a video embed code

After you’ve uploaded a video to your dashboard, hover over the video, click on the paper clip icon, and select “Copy embed code.”

To embed a vertical video, select “Copy vertical embed code.” Then add the vertical-specific embed code to your site. Vertical embeds are a great fit for social videos because they display in a vertical player on your site.

Copy_embed_code_from_publisher_dashboard.png

Video embed codes + SEO

Raptive video embeds generate the crucial video schema needed for search engines to gather information about your video.

When you include a video title and detailed description upon upload, the Raptive embed code contains metadata optimized for search engines.

Fill these out for each video when you upload the video to your publisher dashboard.

Video_title_and_description_in_publisher_dashboard.png

How to add the video embed code to a post on your site

Adding the video embed code in WordPress

If your site is using WordPress, the embed code from your Raptive dashboard will be a WordPress shortcode.

To run vertical embeds with WordPress shortcodes, update your Raptive Ads plugin to version 3.12 or later.

Example_of_shortcode_video_embed_code.png

Example of Raptive shortcode embed code

Sign in to your WordPress dashboard, find your post, and click edit. If you’re using the Classic editor, simply paste in the Raptive embed code and select update to save your changes. If you’re using the Gutenberg block editor, search for and select the “shortcode” block, and add the Raptive embed code there.

Adding the video embed code in another CMS

If your site uses any content management system (CMS) besides WordPress, the embed code from your Raptive dashboard will be a custom HTML div.

Example_of_HTML_div_embed_code.png

Example of AdThrive HTML div video embed code

Go to your site’s standard blog post editor. Paste in the AdThrive embed HTML code. Save/Update the post.

For vertical videos, paste in the vertical embed code from your dashboard instead.

Where should you embed the video on the page?

Embedded videos earn when the reader clicks to play them, so place the video wherever you think readers will be most likely to watch it.

Upload an engaging thumbnail image and encourage the reader to click to watch the video in your post copy.

How to embed a video in a recipe card

Can you add a Related video inside a recipe card? Yes. Paste the video embed code directly into your recipe card wherever you choose.

video player in recipe card

Example of video in recipe card

Frequently Asked Questions:

Can I embed the same video on more than one post?

Yes, you can embed the same video on as many pages as you want using the same embed code. Just copy from your dashboard and paste it into the content of each post where you’d like the video to appear.

Can I embed multiple videos onto the same post?

Yes, you can embed as many videos onto one page as you’d like.For example, if you have multiple videos for the unique steps in a process, you can embed each video in your post where you'd like. 

Can I embed the same video in multiple places on the same post?

Yes, you can embed the same video more than once on the page. For example, some creators may want to embed the video inside a featured area like the recipe card and earlier in the post.

Can I embed a video on a specific post and include it in a playlist?

Yes, you can embed a video into a post and include it in your Playlist player by ticking the box “Add to Playlist” in the video details in the dashboard.

Can I update an existing embedded video to use the vertical player?

Yes. If a vertical video is already embedded on your site, you can update it to run in the vertical player. Replace the current embed code with the vertical embed code from your dashboard, or add orientation="vertical" at the end of the current embed code. Be sure to include the space before orientation.

Will my existing vertical videos automatically update to the vertical player?

No. Existing embeds will stay horizontal, even if the video itself is vertical. To use the vertical player, update the embed code in your CMS.

Why does my vertical embed loop instead of playing the next video in my playlist?

Vertical embeds loop the embedded video instead of moving on to your playlist. This helps make sure only vertical content runs in the vertical player, since most playlists include horizontal videos.

Why does my vertical embed show horizontal ads?

Most ads that run in vertical embeds will still be horizontal. Most web video ad demand is horizontal, so this helps support strong monetization for the vertical player.

How to use Google Search Console to verify your videos are set up correctly

You can easily verify that Google is successfully able to "see" your Related videos by logging in to your Google Search Console account and navigating to Enhancements > Videos.

Untitled_design__2_.png

Was this article helpful?
1 out of 1 found this helpful
Have more questions? Send a message

Want to join Raptive? Apply here!