The Custom Embed block allows you to securely embed certain types of iFrames that contain script tags in them, such as interactives from Tableau.
How to Create a Custom Embed Block
- Navigate in your WordPress Admin > Custom Embeds
- Click “Add New Custom Embed”
- Add a title to your embed
- Paste your embed content into the “Paste embed content here” field
- Click “Publish”
How to Insert a Custom Embed Block into a Post
- Navigate in your WordPress Admin to the Post where you wish to add this block
- Insert (“+”) the Custom Embed block, located under the “Embeds” section, or you can search for this block in the Block Inserter menu
- Click on the newly inserted “Custom Embed Block” in your post.
- In the Block Options in the right sidebar:
- Click “Select”
- Search for the Custom Embed block you created in the modal which pops up
- Click on the embed you created and then click “Select”. The embed will appear in the post and the name of the embed displays in the Block Options under “Custom Embed Picker”.
- Click “Select”
- Search for the Custom Embed block you created in the modal which pops up
- Click on the embed you created and then click “Select”. The embed will appear in the post and the name of the embed displays in the Block Options under “Custom Embed Picker”.
- Also in the Block Options, you can adjust the height of the iFrame (in pixels – “px”) to ensure your content displays as expected.
Note: You can insert more than one Custom Embed block in your post.