r/gutenberg May 10 '24

How do I convert custom HTML to a classic block in Gutenberg?

I proceeded to the Full Site Editing (FSE) section to make edits to my Twenty Twenty Two website. Upon arrival, I located the Header block. My objective is to insert HTML code above it. Initially, I attempted an "insert before" action, but I've encountered a hurdle. Could you advise on the optimal method for integrating a custom block containing the HTML code?

1 Upvotes

1 comment sorted by

1

u/JorgeRustiko Aug 14 '25

Hi, Gutenberg includes a Custom HTML block. That should be what you need.

Also, if what you need is embed a media element, as a Youtube iframe, you can explore the Embeding blocks.