banner



How To Resize Youtube Video In Wordpress

Here'due south how yous can hands utilise YouTube videos in your posts and pages, every bit well as in your widget areas and in comments you go out.

Table of Contents

Embed with a URL

To chop-chop embed a YouTube video, simply copy the video's URL from your web browser's accost bar while viewing the video:

Paste the URL into the YouTube block as you draft your mail service or page. You can likewise paste it onto a new line (i.east. in an empty Paragraph block) and information technology will automatically become converted to the YouTube block.

We take care of the rest! You volition see the video inside the editor correct away:

Youtube Block

If yous're using the Classic Editor, you'll need to paste the URL in the Visual editor on a line by itself. You must utilise the full YouTube video link, not a shortlink, for the video to be embedded.


↑ Table of Contents ↑

Embed with a Shortcode

To customize the video's size and settings, use a shortcode. You lot can exercise this past copying the video URL:

Then create a shortcode using the format below. Be sure to supersede the URL listed here with the URL of your video. You can add together the shortcode to whatever page or postal service using a shortcode block.

Note: The shortcode will not give you a preview of the video in your editor, you will need to preview or publish your post first.

[ youtube https://www.youtube.com/watch?five=WVbQ-oro7FQ ]


↑ Tabular array of Contents ↑

Video Customization Options

You lot tin specify the width and height of the embedded video past calculation &w=... or &w=...&h=...to the shortcode. It will automatically adapt to your theme'southward content length and give yous preferred dimensions.

You tin restrict related videos to only evidence videos from the same channel by appending &rel=0. YouTube does not offering an option to disable related videos entirely.

For example, this shortcode:

[ youtube https://www.youtube.com/watch?5=_Oh12ROTQCE&w=640&h=385 ]

produces this video, which is narrower than the default embed without custom width and peak settings:

More Examples:

These are the optimizations that we currently support:

  • To embed the video with default width and height adapted to your theme:
    [ youtube https://www.youtube.com/watch?v=_Oh12ROTQCE ]
  • To specify the width and summit explicitly:
    [ youtube https://www.youtube.com/watch?5=_Oh12ROTQCE&w=320&h=240 ]
  • To specify the width only:
    [ youtube https://www.youtube.com/lookout?5=_Oh12ROTQCE&w=320 ]
  • To left align the player:
    [ youtube https://www.youtube.com/lookout?v=_Oh12ROTQCE&align=left ]
  • To right align the player:
    [ youtube https://www.youtube.com/lookout man?five=_Oh12ROTQCE&align=correct ]
  • To show only related videos from the aforementioned aqueduct after the video is done:
    [ youtube https://www.youtube.com/lookout?v=_Oh12ROTQCE&rel=0 ]
  • To start at a certain betoken in the video, convert the time of that point from minutes and seconds to all seconds, and so add together that number as shown (using an example start signal of i minute 15 seconds):
    [ youtube https://www.youtube.com/spotter?five=_Oh12ROTQCE&commencement=75 ]
  • To specify a starting time and finish fourth dimension for a video, do the same equally the above but add the end time as shown: [ youtube https://world wide web.youtube.com/watch?v=WVbQ-oro7FQ&start=75&end=500 ]
  • To hide the top information bar:
    [ youtube https://www.youtube.com/watch?v=_Oh12ROTQCE&showinfo=0 ]

↑ Table of Contents ↑

Embed a Playlist

You can besides embed a YouTube playlist instead of a unmarried video. Merely copy the playlist'south URL from your spider web browser'south address bar while viewing the playlist:

Exist sure to re-create the full URL, including &listing=… at the stop. That copies the entire playlist instead of a single video.

Then, paste it to the YouTube block or add it as a shortcode to the shortcode block using the format below.

[ youtube https://www.youtube.com/sentinel?v=_mDxcDjg9P4&list=PL-edf9crl0NaavjRedvfFFhMvOTvFpDVI ]

The playlist will look similar the 1 below — you can preview it even before publishing the post:


↑ Table of Contents ↑

Depending on the location of your theme'due south widget areas, you can also embed YouTube videos in your sidebar or footer by copying and pasting the shortcode into a Text Widget. You lot volition need to use this format:
[ youtube https://www.youtube.com/sentry?v=_Oh12ROTQCE ]


↑ Tabular array of Contents ↑

If y'all want, you lot may also embed YouTube videos when yous exit comments on any WordPress.com site. Merely take hold of the URL of whatsoever YouTube video and paste it directly into the comment field:

In one case your comment is posted/approved, yous will be able to watch the video direct from the comment surface area.


↑ Tabular array of Contents ↑

Stream a Live Broadcast with YouTube

You can stream a live circulate using YouTube, and embed the stream during or later on the issue on your WordPress.com site.

In order to create a Live Stream on your site, you'll demand to start at YouTube by enabling Live Events on your settings page.

From the YouTube Dashboard, click on Channel > Live Events > Enable. Your account must be in proficient continuing to enable live events, subject to YouTube guidelines.

Screen Shot 2014-07-29 at 2.09.48 PM

One time you have enabled Live Events, you tin initiate a new stream by going to Video Manager > Live Events > Schedule New Event

The video must be given a Championship to proceed, and you should set up the privacy setting as well. You can embed a stream set to Unlisted or Public on your page, withal a stream set to Private volition show only a blank video.

In one case you have filled in the information and selected a privacy setting, click Go Live Now. A dissever window volition appear and the Google Hangouts Live page will load. This may accept some time depending on the speed of your connexion.

When the green Start Broadcast buttons appears, y'all are set to start streaming. At the bottom right click Links and then copy the YouTube Folio link from the box.

cloudup-C2AA7ADB-ACB9-4895-ACEF-3BDDDC372D24

Next, go to your WordPress.com page or post where you'd similar this video to appear. Paste the link into the YouTube cake, and when you are gear up, click Publish.

Now yous tin can begin the broadcast, and users can click play on the embedded video on your WordPress.com site to stream the consequence. The broadcast is on a cursory delay, and users may need to wait a moment and/or refresh the page to beginning the stream one time you are alive.

Once the event is over, the video will remain in place and can exist replayed by visitors in the time to come. If you lot prefer not to have the video online after the live event, you can fix the result to Private at YouTube, or simply remove the link from your page on WordPress.com.

Y'all tin find a longer guide to the options available when setting up a Live Consequence on the Google support guide for Alive Streaming.


↑ Table of Contents ↑

Troubleshooting

For information virtually troubleshooting YouTube embed links, take a expect at our Troubleshooting Embed Links doc.

Source: https://wordpress.com/support/videos/youtube/

Posted by: knottgrecond.blogspot.com

0 Response to "How To Resize Youtube Video In Wordpress"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel