Skip to content

Instantly share code, notes, and snippets.

@jchristopher
Last active May 14, 2019 13:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jchristopher/827df5f2099eabe1dda1091f16b559db to your computer and use it in GitHub Desktop.
Save jchristopher/827df5f2099eabe1dda1091f16b559db to your computer and use it in GitHub Desktop.
Sample of reusable block in Gutenberg
<!-- wp:paragraph -->
<p> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus
tincidunt nunc vel consequat dapibus. Pellentesque aliquet felis
nulla, sit amet efficitur mauris finibus in. </p>
<!-- /wp:paragraph -->
<!-- wp:block {"ref":50} /-->
<!-- wp:heading -->
<h2>Lipsum dolor sit</h2>
<!-- /wp:heading -->
<!-- wp:list {"ordered":true} -->
<ol><li>Massa dictum</li><li>Neque vitae</li><li>Porta ut morbi eu</li></ol>
<!-- /wp:list -->
<!-- wp:image {"id":47} -->
<figure class="wp-block-image">
<img src="http://mysite.com/wp-content/uploads/coffee-cup.png" alt="" class="wp-image-47"/>
</figure>
<!-- /wp:image -->
<!-- wp:paragraph -->
<p>Vivamus eleifend, erat eu scelerisque condimentum, justo dui dictum neque, rutrum
ornare est leo vel erat. Donec auctor tempor scelerisque. In dapibus elit velit, vitae
tincidunt urna porta ut. Morbi eu euismod massa. </p>
<!-- /wp:paragraph -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment