{"id":12707482,"date":"2020-04-21T19:23:32","date_gmt":"2020-04-21T19:23:32","guid":{"rendered":"https:\/\/wordpress.org\/support\/?post_type=helphub_article&p=12707482"},"modified":"2024-06-09T10:12:56","modified_gmt":"2024-06-09T10:12:56","slug":"youtube-embed","status":"publish","type":"helphub_article","link":"https:\/\/wordpress.org\/documentation\/article\/youtube-embed\/","title":{"rendered":"YouTube embed"},"content":{"rendered":"\n

Go back to the list of Blocks<\/strong><\/a><\/p>\n\n\n\n

\"YouTube<\/figure>\n\n\n\n

Using the YouTube Embed block you can include a YouTube video into your post\/page with play buttons, so your visitor can stay on your site to watch it. <\/p>\n\n\n\n

You don’t need a YouTube account to embed a video.<\/p>\n\n\n\n

Not all videos can be shared this way, though. The publisher needs to “Allow Embedding” in the settings of the video and some publishers restrict the countries, where videos can be shared. <\/p>\n\n\n\n

\"This
This setting can be found YouTube Studio:
Edit Video > More Options > Check “Allow embedding<\/figcaption><\/figure>\n\n\n\n

Non-personal identifying viewing data will be shared with YouTube and the publisher of the video. Please consult the privacy policies and information<\/a> on YouTube if your site is visited by children.<\/em><\/p>\n\n\n\n

Six Steps to embed a YouTube Video in your post or page<\/strong><\/p>\n\n\n\n

    \n
  1. Find your video on YouTube.com, and copy the URL of the video from the browser bar<\/li>\n<\/ol>\n\n\n\n
    \"\"<\/figure>\n\n\n\n
      \n
    1. Add a YouTube Embed block to your post. <\/strong><\/li>\n<\/ol>\n\n\n\n
      \"Select
      Adding a block via the “Slash” command from an empty row<\/figcaption><\/figure>\n\n\n\n

      Detailed instructions on adding blocks<\/a><\/p>\n\n\n\n

        \n
      1. Paste the YouTube URL <\/strong>from Step 1<\/li>\n\n\n\n
      2. Click on the “Embed” Button<\/strong><\/li>\n<\/ol>\n\n\n\n
        \"YouTube<\/figure>\n\n\n\n
          \n
        1. You see the YouTube video in your editor.<\/strong><\/li>\n<\/ol>\n\n\n\n
          \"Example
          After Embed of a YouTube video<\/figcaption><\/figure>\n\n\n\n
            \n
          1. Clicking on Preview<\/strong>, will show you the display on the front end of your page. <\/li>\n<\/ol>\n\n\n\n
            \"YouTube<\/figure>\n\n\n\n

            Embed other YouTube links<\/h2>\n\n\n\n

            Playlist<\/h3>\n\n\n\n

            A playlist URL can be embedded and the first video of the list shows in the embed box, with additional navigation for the playlist in the top right corner. <\/p>\n\n\n\n

            \"Playlist<\/figure>\n\n\n\n

            Live Streams<\/h3>\n\n\n\n

            YouTube Live stream URLs are supported in the form of youtube.com\/live\/videocode<\/code><\/p>\n\n\n\n

            Unsupported URLs<\/h3>\n\n\n\n

            Not all YouTube links can be used for an embed. When an URL is used that is not suited for embedding, the Block editor offers you two options: to try a different URL or convert the current URL into a Text link. <\/p>\n\n\n\n

            \"Sorry<\/figure>\n\n\n\n

            Block Toolbar<\/h2>\n\n\n\n

            Next to the YouTube icon is the “Drag & Drop Handle”. This can be used to drag your block to another section of your page. <\/p>\n\n\n\n

            Next to this is the “Mover”. Up and Down options are presented.<\/p>\n\n\n\n

            \"Block
            YouTube block toolbar<\/figcaption><\/figure>\n\n\n\n

            Change Alignment<\/strong><\/p>\n\n\n\n

            After the first separator line you have the “Change alignment” tool. <\/p>\n\n\n\n

            \"Changing
            Change alignment option – YouTube Block<\/figcaption><\/figure>\n\n\n\n

            The alignment has variable options depending on your theme. <\/p>\n\n\n\n