Fam Wencong, Kenneth

My Diary

Adding HTML or Code to Gutenberg/WordPress

Published: Sunday, January 26, 2020

A custom HTML block or code 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. To add a custom HTML block or a code block, hover your mouse over the Add Block icon (the plus sign within the Gutenberg editor). Search for the block by typing HTML or Code. Select the block. Done, you’ll see a text editor that allows you to enter your code.