Note: This guide is only for sites hosted with WordPress.com. If you self-host your WordPress site, or are using a premium version of WordPress, please refer to our How to embed a video guide.
To add a video on a WordPress hosted site, you will be using the Share Video URL we provide. WordPress will automatically pull the video from that URL and display it on your site. Your video must be listed as Public for this to work.
-
Navigate to your WordPress admin panel.
-
Select the ‘Add’ button next to ‘Site Pages’ or ‘Blog Posts.’
-
Build your page as you desire with a title and content.
-
Copy the Share Video URL from your SproutVideo account and paste that into your WordPress post. Your video must be listed as Public for this to work. Private, Password protected, and Login Protected videos will not work in this manner.
-
You can click ‘Preview’ to see what your page will look like or click ‘Publish’ to save your changes.
Using a Plugin
If you’re using Wordpress, you may need use the following plugin to allow Wordpress to accept iframes as part of post content. We recommend trying to embed your video without installing this plugin first. Only install this plugin if the embed code does not work on its own:
https://wordpress.org/plugins/iframe/
Activate the plugin and then use Wordpress’ shortcode feature to insert your video. You should grab all of the parameters for your shortcode embed from the SproutVideo embed code. So, if a SproutVideo embed code looks like this:
<iframe class='sproutvideo-player' type='text/html' src='https://videos.sproutvideo.com/embed/2898d2bb141ce2c990/2a3ed5a6d9baecd1?type=sd' width='630' height='352' frameborder='0' allowfullscreen referrerpolicy='no-referrer-when-downgrade'></iframe>
Your short code should look like this:
<iframe src="https://videos.sproutvideo.com/embed/2898d2bb141ce2c990/2a3ed5a6d9baecd1?type=sd" width="630" height="352" allowfullscreen referrerpolicy='no-referrer-when-downgrade'></iframe>
Notice that the video source URL is from the embed code and is NOT the URL of the video on the SproutVideo site. Also notice the how the height and width have been copied over.
Other articles in the Embedding Videos and Live Streams section: