Option Name | Default Setting | Shortcode Parameters | Description | |
---|---|---|---|---|
Related Videos | rel , norel |
YouTube typically displays thumbnails of videos it feels are related to what was just shown at the end of a video. This option can modify this behavior. | ||
Autoplay | autoplay , noautoplay |
Automatically begin playback of a video as soon as the page it's on is loaded. | ||
Modest Branding | modestbranding , nomodestbranding |
Prevent the YouTube logo from displaying in the control toolbar. A small YouTube text label will appear in the info bar if a user hovers their mouse over a paused video. | ||
Window Mode | wmode_none , wmode_transparent , wmode_opaque |
Window Mode is traditionally a flash thing that affects whether or not the background of your movie is transparent, and also can affect whether or not hardware acceleration is used during playback. Oddly, with YouTube's iframe embeds (such as those used in this plugin), it can also affect z-index. Setting the wmode to "transparent" should fix this behavior, but your mileage may vary. | ||
Theme | dark_theme , light_theme |
Typically the default dark theme is used, but YouTube does offer a light variant that might be a better fit for your site. |
Simply include the URL or video id inside a [responsive_youtube] shortcode, like this:
[responsive_youtube soagYwfgfxc]
,
or this:
[responsive_youtube https://www.youtube.com/watch?v=soagYwfgfxc]
. In the
table above, you'll notice the options in the "Shortcode Parameters" column. These can
be added to the shortcode in order to override one of the defaults or set an option
on a one-off basis. For example, should you choose to use the light theme instead of the
default dark theme on your about page which has a custom template the light theme would look
good with, you could use the following shortcode [responsive_tube soagYwfgfxc light_theme]
.
Also, you can use more than one parameter at a time, so
[responsive_tube soagYwfgfxc light_theme autoplay]
is also valid.
Option Name | Default Setting | Shortcode Parameters | Description | |
---|---|---|---|---|
Title Display | title , notitle |
The title of the video typically displays in a bar that stretches across the top of video when it's not playing back. | ||
Byline Display | byline , nobyline |
Typically displayed underneath the video title. | ||
Portrait Display | portrait , noportrait |
Typically displayed in the upper left corner of the video. |
Similarly to the YouTube syntax, simply include the URL or
video id inside a [responsive_vimeo] shortcode, like this:
[responsive_vimeo 29506088]
, or this:
[responsive_vimeo https://vimeo.com/29506088]
.
In the table above, you'll notice the options in the "Shortcode
Parameters" column. These can be added to the shortcode in
order to override one of the defaults or set an option on
a one-off basis. For example, should you choose to include
the title of a video after disabling it her in the defaults,
you could use the following shortcode [responsive_vimeo 29506088 title]
.