Vevo is a video hosting service owned and operated by a joint venture of Universal Music Group (UMG), Google, Sony Music Entertainment (SME) and Abu Dhabi Media. The service provides music videos from two of the "big three" major record labels: UMG and SME. This article will show you how to embed the (responsive) video content from Vevo into your WordPress website with shortcode.
The Result
Using the shortcode of [vevo v="http://www.vevo.com/watch/ariana-grande/Problem/USUV71400762"]
(the full page URL) or simply [vevo v="USUV71400762"]
(the video ID), we'll return the video below.
Removed
The video is responsive and will scale on mobile devices.
WordPress Shortcode
Copy and paste the WordPress function into your theme's functions.php
file or, if you sensibly have one installed, your custom functions plugin.
If you require shortcode to work in a sidebar widget, you'll have to enable the functionality with a filter. If you're using our custom functions plugin, you'll have that feature enabled by default.
Considerations
- It's always best to use the video ID rather than the URL, particularly - as is the case with Vevo - where the ID complies with a consistent standard .
- The video container height is automatically determined. If the height doesn't work for you, add the height into your shortcode.
- If you would like the video to autoplay when the video loads, use
ap="1"
in your shortcode.