How to add an HTML wrapper to a custom Block Pattern

WordPress snippet – Birgir Erlendsson (birgire)

22/07/2021 5:25PM

Episode Synopsis "How to add an HTML wrapper to a custom Block Pattern"

Block patterns are registered with: If we wrap the …pattern… with a div tag: it will show up as a classic block in the editor. To avoid that, we can use the group block as an out of the box pattern wrapper with a custom class mywrapper: Theoretically one can use the custom html block as a pattern,...

Listen "How to add an HTML wrapper to a custom Block Pattern"

More episodes of the podcast WordPress snippet – Birgir Erlendsson (birgire)