Skip to content

Instantly share code, notes, and snippets.

@vburlak
Created Feb 10, 2022
Embed
What would you like to do?
innerBlock Structure example
<!-- wp:columns -->
<div class="wp-block-columns"><!-- wp:column -->
<div class="wp-block-column"><!-- wp:heading -->
<h2>Column Heading 1</h2>
<!-- /wp:heading -->
<!-- wp:paragraph -->
<p>Example paragraph inside <code>core/column</code></p>
<!-- /wp:paragraph --></div>
<!-- /wp:column -->
<!-- wp:column -->
<div class="wp-block-column"><!-- wp:heading -->
<h2><meta charset="utf-8">Column Heading 2</h2>
<!-- /wp:heading -->
<!-- wp:paragraph -->
<p>Second paragraph inside <code>core/column</code></p>
<!-- /wp:paragraph --></div>
<!-- /wp:column --></div>
<!-- /wp:columns -->
<!-- wp:group -->
<div class="wp-block-group"><!-- wp:heading -->
<h2>Group Heading</h2>
<!-- /wp:heading -->
<!-- wp:paragraph -->
<p><code>core/group</code> block type used to group logically Heading + Paragraph + what ever</p>
<!-- /wp:paragraph --></div>
<!-- /wp:group -->
<!-- wp:heading -->
<h2>Regular Heading w/o column or group</h2>
<!-- /wp:heading -->
<!-- wp:paragraph -->
<p>Regular plain paragraph.</p>
<!-- /wp:paragraph -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment