Blocks

Blocks »YouTube Block

The YouTube block allows you to embed YouTube videos into your posts and pages.

Table of Contents

Add a YouTube Block

To add the block to your page or post, click on the block inserter + icon to open the block library and select the YouTube block.

You can also type /youtube and hit enter in a new line to add one quickly.

Adding a YouTube block

Detailed instructions on adding blocks can be found here.


↑ Table of Contents ↑

Block Toolbar

In order to reveal the block toolbar, you can click on the block and the toolbar will display. Each block has its own block-specific controls that allow you to manipulate the block right in the editor.

The YouTube block offers the following options in its toolbar:

YouTube Block Toolbar

  • Change block style (transform the YouTube block into a group block)
  • Change alignment (left, center, right, wide width, full width)
  • Edit URL (edit the YouTube URL you pasted)
  • More options

↑ Table of Contents ↑

Block Settings

Every block has specific options in the editor sidebar in addition to the options found in the block toolbar. If you do not see the sidebar, simply click the ‘cog’ icon next to the Publish button.

The block settings can be found in the sidebar.

↑ Table of Contents ↑

Media Settings

Keep the option Resize for smaller devices enabled if you’d like to preserve the aspect ratio on different browser sizes.

YouTube video without the Resize for smaller devices enabled.
With the Resize for smaller devices disabled
With the Resize for smaller devices enabled

Advanced

The advanced tab lets you add a CSS class to your block, allowing you to write custom CSS and style the block. Learn more.

The advanced section lets you add a CSS class to your block.
The advanced section lets you add a CSS class to your block.

Not quite what you're looking for?

Get Help