We’ve recently learnt that some of our folks aren’t able to embed youtube video’s or soundcloud players into their sites. This is obviously a huge issue, especially with the number or rockstars we have on our books.
Why the change?
First of all the reason for not being able to do this, is for your own, and everyone elses safety (apparently). Under a WordPress Multi-site environment, it’s a security risk to allow <iframes> and <object> codes to be inserted in sites. I know, I know, you are not malicious, but rest assured we have an answer for you.
How to embed
(watch in HD mad, click the wheel and increase the bandwidth)
To quickly embed a YouTube video, simply copy the video’s URL from your web browser’s address bar while viewing the video:
Paste it on a line by itself in your post/page editor. Please note this does not have to be in HTML or TEXT mode, just visual is fine.
Customising the size:
If you want to customise the size of the video, you can add some attributes to it, namely w= (width) h= (height).
You will need to wrap the video code above in some embed short codes:
It would then looks something like this:
Great news is it also supports:
- Flickr (both videos and images)
- FunnyOrDie.com (WordPress 3.0+)
- Instagram (WordPress 3.5+)
- SlideShare (WordPress 3.5+)
- SoundCloud (WordPress 3.5+)
- SmugMug (WordPress 3.0+)
- Twitter (WordPress 3.4+)
- Vimeo (note older versions of WP have issues with https embeds, just remove the s from the https to fix)
- YouTube (only public videos and playlists – “unlisted” and “private” videos will not embed)
- WordPress.tv (only VideoPress-type videos for the time being)