Helping site owners learn WordPress since 2012 · (844) WP-TUTOR
Block Editor

Adding HTML to Gutenberg - WordPress 5.0

Learn how to add custom HTML in the WordPress block editor. Insert the Custom HTML block, paste your code or embed snippets, and preview as you edit.

WT
WP Tutoring TeamWordPress Instructors
Updated Oct 11, 2021
1 min read

A custom HTML block allows you to add HTML to Gutenberg and preview it as you edit.  Those who have used the classic editor should remember the 'text' tab.  This essentially recreates this as a block.

Step 1 - Hover your mouse over the Add Block icon (the plus sign in the upper left hand corner within the Gutenberg editor). Scroll to Formatting. Select Custom HTML.

HTML

Select the Custom HTML Block

Step 2 - The custom HTML block will appear. You’ll see a text editor that allows you to enter your code.

Paste HTML code in the HTML Block

This block can also be used if you have embed codes from certain services that aren't included in the "embed" block section.

WT

WP Tutoring Team

WordPress Instructors

We’ve been teaching WordPress to individuals and businesses since 2013 — through step-by-step tutorials and 1-on-1 tutoring sessions.

Leave a comment

Comments are reviewed before they appear.

Get our free WordPress starter guide

Join thousands of site owners and get step-by-step WordPress tutorials in your inbox, plus printable cheat sheets.

Beginner-friendly, no jargon
Printable cheat sheets & checklists
Unsubscribe anytime

Request your session

We’ll reply quickly — usually the same business day.

By using this form you agree with the storage and handling of your data by this site.