The Custom HTML block allows you to add HTML code to a post or page.

Here’s what it looks like when it’s added to the Block Editor.

Custom HTML block

To add custom HTML block you click on the + icon at the right of any empty block or at the top left of the editor then search for HTML and click on the custom HTML block icon.

Add custom HTML block

More detailed instructions for adding blocks can be found here.

Add HTML Code

Once you have added the Custom HTML block, you can add your code.

Paste the embed code into the custom HTML block

Click on Preview to view directly in the editor.

Preview video