First, copy the YouTube video’s URL from your web browser’s address bar while viewing the video. Videos on YouTube typically use the URL format: https://www.youtube.com/watch?v=a1b2c3d4e5
To quickly add the video to any page of your site, paste the URL on a new line in the WordPress editor. The link will automatically turn into an embedded YouTube video player:
Support is included for standard YouTube videos, YouTube playlists, and live streams.
If you wish to add a YouTube link without it turning into an embedded player, type some text before the URL like we’re doing in this very sentence: https://www.youtube.com/watch?v=oAT4e8vP6pk. The link will only turn into an embedded player if it is on its own line with nothing else. Alternatively, you can add the link between two backtick symbols ` and it will appear like this:
YouTube also provides an iframe embed option, which you can insert via a Custom HTML block.
Add a YouTube Block #
Alternatively, you can first add a YouTube block. To add the YouTube block, click on the + Block Inserter icon and search for “youtube”. Click it to add the block to the post or page. Paste the YouTube URL in the box provided and click Embed.
Using your keyboard, you can also type /youtube on a new line and press enter to quickly add a new YouTube block.
Leave a Reply