Skip to content

Instantly share code, notes, and snippets.

@kimcoleman
Last active June 14, 2023 11:50
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 kimcoleman/90657432b515376004a5ef0001b9d9e5 to your computer and use it in GitHub Desktop.
Save kimcoleman/90657432b515376004a5ef0001b9d9e5 to your computer and use it in GitHub Desktop.
Theme Unit Test - Common Blocks Data
<!-- wp:paragraph -->
<p>The Common category includes the following blocks:<em> Paragraph, image, headings, list, gallery, quote, audio, cover, video.</em></p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>The paragraph block is the default block type.&nbsp; It should not have any alignment of any kind. It should just flow like you would normally expect. Nothing fancy. Just straight up text, free flowing, with love.</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>This paragraph is left aligned.</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph {"align":"right"} -->
<p class="has-text-align-right"><em>This italic paragraph is right aligned.</em></p>
<!-- /wp:paragraph -->
<!-- wp:paragraph {"dropCap":true,"fontSize":"medium"} -->
<p class="has-drop-cap has-medium-font-size"><strong>Neither of these paragraphs care about politics, but this one is bold, medium sized and has a drop cap.</strong></p>
<!-- /wp:paragraph -->
<!-- wp:paragraph {"align":"center"} -->
<p class="has-text-align-center">This paragraph is centered. </p>
<!-- /wp:paragraph -->
<!-- wp:paragraph {"fontSize":"small"} -->
<p class="has-small-font-size">This paragraph prefers Jazz over Justin Timberlake. It also uses the small font size.</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph {"fontSize":"large"} -->
<p class="has-large-font-size">This paragraph has something important to say:&nbsp; It has a large font size, which defaults to 36px.</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph {"customFontSize":46} -->
<p style="font-size:46px">The huge text size defaults to 46px, but the size can be customized.</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph {"textColor":"very-light-gray","customBackgroundColor":"#cf2e2e"} -->
<p style="background-color:#cf2e2e" class="has-text-color has-background has-very-light-gray-color">This paragraph is colorful, with a red background and white text (maybe). Colored blocks should have a high enough contrast, so that the text is readable. </p>
<!-- /wp:paragraph -->
<!-- wp:paragraph {"customTextColor":"#1e0566"} -->
<p style="color:#1e0566" class="has-text-color"><strong>Below this block, you will see a single image with a circle mask applied.</strong></p>
<!-- /wp:paragraph -->
<!-- wp:image {"id":968,"sizeSlug":"full","className":"is-style-circle-mask"} -->
<figure class="wp-block-image size-full is-style-circle-mask"><img src="https://wpthemetestdata.files.wordpress.com/2013/03/image-alignment-150x150.jpg" alt="Image Alignment 150x150" class="wp-image-968"/></figure>
<!-- /wp:image -->
<!-- wp:heading {"level":1} -->
<h1>H1 Heading</h1>
<!-- /wp:heading -->
<!-- wp:heading -->
<h2>H2 Heading</h2>
<!-- /wp:heading -->
<!-- wp:heading {"level":3} -->
<h3>H3 Heading</h3>
<!-- /wp:heading -->
<!-- wp:heading {"level":4} -->
<h4>H4 Heading</h4>
<!-- /wp:heading -->
<!-- wp:heading {"level":5} -->
<h5>H5 Heading</h5>
<!-- /wp:heading -->
<!-- wp:heading {"level":6} -->
<h6>H6 Heading</h6>
<!-- /wp:heading -->
<!-- wp:heading -->
<h2>Ordered list</h2>
<!-- /wp:heading -->
<!-- wp:list {"ordered":true,"start":0} -->
<ol start="0"><li>The software should be licensed under the&nbsp;<a href="http://www.gnu.org/copyleft/gpl.html">GNU Public License</a>.</li><li>The software should be freely available to anyone to use for any purpose, and without permission.</li><li>The software should be open to modifications.<ol><li>Any modifications should be freely distributable at no cost and without permission from its creators.</li></ol></li><li>The software should provide a framework for translation to make it globally accessible to speakers of all languages.</li><li>The software should provide a framework for extensions so modifications and enhancements can be made without modifying core code</li></ol>
<!-- /wp:list -->
<!-- wp:heading -->
<h2>Unordered list</h2>
<!-- /wp:heading -->
<!-- wp:list -->
<ul><li>One</li><li>Two</li><li>Three<ul><li>Four</li></ul></li><li>Five</li></ul>
<!-- /wp:list -->
<!-- wp:gallery {"ids":["769","768","767","770","807","766"],"columns":2} -->
<figure class="wp-block-gallery columns-2 is-cropped"><ul class="blocks-gallery-grid"><li class="blocks-gallery-item"><figure><img src="https://wpthemetestdata.files.wordpress.com/2008/06/img_0747.jpg" alt="Brazil Beach" data-id="769" data-link="https://wpthemetestdata.wordpress.com/2010/09/10/post-format-gallery/img_0747/" class="wp-image-769"/><figcaption class="blocks-gallery-item__caption">Jericoacoara Ceara Brasil</figcaption></figure></li><li class="blocks-gallery-item"><figure><img src="https://wpthemetestdata.files.wordpress.com/2008/06/img_0513-1.jpg" alt="Huatulco Coastline" data-id="768" data-link="https://wpthemetestdata.wordpress.com/2010/09/10/post-format-gallery/alas-i-have-found-my-shangri-la/" class="wp-image-768"/><figcaption class="blocks-gallery-item__caption">Sunrise over the coast in Huatulco, Oaxaca, Mexico</figcaption></figure></li><li class="blocks-gallery-item"><figure><img src="https://wpthemetestdata.files.wordpress.com/2008/06/windmill.jpg" alt="Windmill" data-id="767" data-link="https://wpthemetestdata.wordpress.com/2010/09/10/post-format-gallery//dcf-1-0/" class="wp-image-767"/><figcaption class="blocks-gallery-item__caption">Windmill shrouded in fog at a farm outside of Walker, Iowa</figcaption></figure></li><li class="blocks-gallery-item"><figure><img src="https://wpthemetestdata.files.wordpress.com/2008/06/img_0767.jpg" alt="Huatulco Coastline" data-id="770" data-link="https://wpthemetestdata.wordpress.com/2010/09/10/post-format-gallery/img_0767/" class="wp-image-770"/><figcaption class="blocks-gallery-item__caption">Coastline in Huatulco, Oaxaca, Mexico</figcaption></figure></li><li class="blocks-gallery-item"><figure><img src="https://wpthemetestdata.files.wordpress.com/2012/06/dsc20040724_152504_532.jpg" alt="" data-id="807" data-link="https://wpthemetestdata.wordpress.com/2010/09/10/post-format-gallery/dsc20040724_152504_532-2/" class="wp-image-807"/></figure></li><li class="blocks-gallery-item"><figure><img src="https://wpthemetestdata.files.wordpress.com/2008/06/michelle_049.jpg" alt="Big Sur" data-id="766" data-link="https://wpthemetestdata.wordpress.com/2010/09/10/post-format-gallery/michelle_049/" class="wp-image-766"/><figcaption class="blocks-gallery-item__caption">Beach at Big Sur, CA</figcaption></figure></li></ul><figcaption class="blocks-gallery-caption">images are not linked</figcaption></figure>
<!-- /wp:gallery -->
<!-- wp:quote -->
<blockquote class="wp-block-quote"><p>Quote</p><cite>Cite</cite></blockquote>
<!-- /wp:quote -->
<!-- wp:audio {"id":821} -->
<figure class="wp-block-audio"><audio controls src="https://wpthemetestdata.files.wordpress.com/2008/06/originaldixielandjazzbandwithalbernard-stlouisblues.mp3"></audio></figure>
<!-- /wp:audio -->
<!-- wp:cover {"url":"https://wpthemetestdata.files.wordpress.com/2008/06/dsc04563.jpg","id":759,"minHeight":274} -->
<div class="wp-block-cover has-background-dim" style="background-image:url(https://wpthemetestdata.files.wordpress.com/2008/06/dsc04563.jpg);min-height:274px"><div class="wp-block-cover__inner-container"><!-- wp:paragraph {"align":"center","placeholder":"Write title…","fontSize":"large"} -->
<p class="has-text-align-center has-large-font-size">Cover block with background image</p>
<!-- /wp:paragraph --></div></div>
<!-- /wp:cover -->
<!-- wp:paragraph -->
<p>The file block has a setting that lets us show or hide a download button with editable text: </p>
<!-- /wp:paragraph -->
<!-- wp:file {"id":1690,"href":"https://wpthemetestdata.files.wordpress.com/2018/11/file_block.pdf"} -->
<div class="wp-block-file"><a href="https://wpthemetestdata.files.wordpress.com/2018/11/file_block.pdf">File Block PDF</a><a href="https://wpthemetestdata.files.wordpress.com/2018/11/file_block.pdf" class="wp-block-file__button" download>Download</a></div>
<!-- /wp:file -->
<!-- wp:file {"id":1690,"href":"https://wpthemetestdata.files.wordpress.com/2018/11/file_block.pdf","showDownloadButton":false} -->
<div class="wp-block-file"><a href="https://wpthemetestdata.files.wordpress.com/2018/11/file_block.pdf">File Block PDF</a></div>
<!-- /wp:file -->
<!-- wp:paragraph -->
<p>Video blocks have settings for showing and hiding the playback controls. Use autoplay and playback controls responsibly. </p>
<!-- /wp:paragraph -->
<!-- wp:video {"id":1690} -->
<figure class="wp-block-video"><video controls loop src="https://wpthemetestdata.files.wordpress.com/2013/12/2014-slider-mobile-behavior.mov"></video><figcaption>This is a video block caption.</figcaption></figure>
<!-- /wp:video -->
<!-- wp:paragraph -->
<p>The video block below is muted and has a poster image that displays before the video starts:</p>
<!-- /wp:paragraph -->
<!-- wp:video {"id":1690} -->
<figure class="wp-block-video"><video controls muted poster="https://wpthemetestdata.files.wordpress.com/2008/06/dsc20050727_091048_222.jpg" src="https://wpthemetestdata.files.wordpress.com/2013/12/2014-slider-mobile-behavior.mov"></video></figure>
<!-- /wp:video -->
<!-- wp:group {"customBackgroundColor":"#d8f6ec"} -->
<div class="wp-block-group has-background" style="background-color:#d8f6ec"><div class="wp-block-group__inner-container"><!-- wp:paragraph -->
<p>The Layout Elements category includes the following blocks: <em>Group, Button, Columns, Media &amp; Text, separator, spacer, read more, and page break.</em></p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>This group block has a light green background color.</p>
<!-- /wp:paragraph -->
<!-- wp:button -->
<div class="wp-block-button"><a class="wp-block-button__link">A button</a></div>
<!-- /wp:button -->
<!-- wp:paragraph -->
<p>The read more block should be right below this text, but only on list pages of themes that show the full content. It won't show on the single page or on themes showing excerpts.</p>
<!-- /wp:paragraph --></div></div>
<!-- /wp:group -->
<!-- wp:more -->
<!--more-->
<!-- /wp:more -->
<!-- wp:columns {"className":"has-4-columns"} -->
<div class="wp-block-columns has-4-columns"><!-- wp:column -->
<div class="wp-block-column"><!-- wp:paragraph -->
<p>The columns:</p>
<!-- /wp:paragraph --></div>
<!-- /wp:column -->
<!-- wp:column -->
<div class="wp-block-column"><!-- wp:paragraph -->
<p>Column two.</p>
<!-- /wp:paragraph --></div>
<!-- /wp:column -->
<!-- wp:column -->
<div class="wp-block-column"><!-- wp:paragraph -->
<p>Column three.</p>
<!-- /wp:paragraph --></div>
<!-- /wp:column -->
<!-- wp:column -->
<div class="wp-block-column"><!-- wp:paragraph -->
<p>Column four.</p>
<!-- /wp:paragraph --></div>
<!-- /wp:column --></div>
<!-- /wp:columns -->
<!-- wp:media-text {"mediaId":757,"mediaType":"image"} -->
<div class="wp-block-media-text alignwide"><figure class="wp-block-media-text__media"><img src="https://wpthemetestdata.files.wordpress.com/2008/06/dcp_2082.jpg" alt="Boardwalk" class="wp-image-757"/></figure><div class="wp-block-media-text__content"><!-- wp:paragraph {"placeholder":"Content…","fontSize":"large"} -->
<p class="has-large-font-size">Media &amp;Text</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>For displaying media and text next to each other. By default, the media is to the left.</p>
<!-- /wp:paragraph --></div></div>
<!-- /wp:media-text -->
<!-- wp:media-text {"align":"full","customBackgroundColor":"#ebf5fe","mediaPosition":"right","mediaId":755,"mediaType":"image","isStackedOnMobile":true} -->
<div class="wp-block-media-text alignfull has-media-on-the-right has-background is-stacked-on-mobile" style="background-color:#ebf5fe"><figure class="wp-block-media-text__media"><img src="https://wpthemetestdata.files.wordpress.com/2008/06/100_5540.jpg" alt="Golden Gate Bridge" class="wp-image-755"/></figure><div class="wp-block-media-text__content"><!-- wp:paragraph {"placeholder":"Content…","fontSize":"large"} -->
<p class="has-large-font-size">This time our block is full width, and the image is to the right.</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>The background color is a pale blue.&nbsp;</p>
<!-- /wp:paragraph --></div></div>
<!-- /wp:media-text -->
<!-- wp:paragraph -->
<p>Test to make sure that the editor and the front match.&nbsp;To test the <em>Stack on mobile </em>setting, reduce the browser window width.</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>The control these settings, the block uses the css classes "has-media-on-the-right" and "is-stacked-on-mobile".</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>The separator has three styles: default, wide line, and dots.</p>
<!-- /wp:paragraph -->
<!-- wp:separator -->
<hr class="wp-block-separator"/>
<!-- /wp:separator -->
<!-- wp:separator {"className":"is-style-wide"} -->
<hr class="wp-block-separator is-style-wide"/>
<!-- /wp:separator -->
<!-- wp:separator {"className":"is-style-dots"} -->
<hr class="wp-block-separator is-style-dots"/>
<!-- /wp:separator -->
<!-- wp:paragraph -->
<p>The spacer block has a default height of 100 pixels:</p>
<!-- /wp:paragraph -->
<!-- wp:spacer -->
<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:paragraph -->
<p>And finally, the page break:</p>
<!-- /wp:paragraph -->
<!-- wp:nextpage -->
<!--nextpage-->
<!-- /wp:nextpage -->
<!-- wp:paragraph -->
<p>This paragraph block is on page two, after the page break.</p>
<!-- /wp:paragraph -->
<!-- wp:button {"className":"is-style-outline"} -->
<div class="wp-block-button is-style-outline"><a class="wp-block-button__link" href="https://wpthemetestdata.wordpress.com/2018/11/03/block-button/">another button</a></div>
<!-- /wp:button -->
<!-- wp:paragraph -->
<p>This post tests various embed blocks:</p>
<!-- /wp:paragraph -->
<!-- wp:core-embed/twitter {"url":"https://twitter.com/WordPress/status/1057136472321613824","type":"rich","providerNameSlug":"twitter","align":"wide","className":""} -->
<figure class="wp-block-embed-twitter alignwide wp-block-embed is-type-rich is-provider-twitter"><div class="wp-block-embed__wrapper">
https://twitter.com/WordPress/status/1057136472321613824
</div><figcaption>Twitter,&nbsp; wide width</figcaption></figure>
<!-- /wp:core-embed/twitter -->
<!-- wp:core-embed/youtube {"url":"https://youtu.be/ex8fMxXJDJw","type":"video","providerNameSlug":"youtube","className":"wp-embed-aspect-16-9 wp-has-aspect-ratio"} -->
<figure class="wp-block-embed-youtube wp-block-embed is-type-video is-provider-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
https://youtu.be/ex8fMxXJDJw
</div><figcaption>YouTube<br></figcaption></figure>
<!-- /wp:core-embed/youtube -->
<!-- wp:core-embed/facebook {"url":"https://www.facebook.com/6427302910/posts/10156380423617911/","type":"rich","providerNameSlug":"facebook","className":""} -->
<figure class="wp-block-embed-facebook wp-block-embed is-type-rich is-provider-facebook"><div class="wp-block-embed__wrapper">
https://www.facebook.com/6427302910/posts/10156380423617911/
</div></figure>
<!-- /wp:core-embed/facebook -->
<!-- wp:core-embed/instagram {"url":"https://www.instagram.com/p/BpmueLLgEn_/?utm_source=ig_share_sheet\u0026igshid=1hcxphic7p9e2","type":"rich","providerNameSlug":"instagram","className":""} -->
<figure class="wp-block-embed-instagram wp-block-embed is-type-rich is-provider-instagram"><div class="wp-block-embed__wrapper">
https://www.instagram.com/p/BpmueLLgEn_/?utm_source=ig_share_sheet&amp;igshid=1hcxphic7p9e2
</div></figure>
<!-- /wp:core-embed/instagram -->
<!-- wp:core-embed/wordpress-tv {"url":"https://wordpress.tv/2018/10/14/kjell-reigstad-allan-cole-how-we-made-our-first-gutenberg-powered-theme/","type":"video","providerNameSlug":"","align":"full","className":"wp-embed-aspect-16-9 wp-has-aspect-ratio"} -->
<figure class="wp-block-embed-wordpress-tv alignfull wp-block-embed is-type-video wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
https://wordpress.tv/2018/10/14/kjell-reigstad-allan-cole-how-we-made-our-first-gutenberg-powered-theme/
</div><figcaption>WordPress TV, full width<br></figcaption></figure>
<!-- /wp:core-embed/wordpress-tv -->
<!-- wp:paragraph -->
<p></p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>The shortcode widget:</p>
<!-- /wp:paragraph -->
<!-- wp:shortcode -->
[gallery columns=2 ids="770,771"]
<!-- /wp:shortcode -->
<!-- wp:paragraph -->
<p>The Archive Widget:</p>
<!-- /wp:paragraph -->
<!-- wp:archives {"className":"extraclass","showPostCounts":true} /-->
<!-- wp:paragraph -->
<p>The same Archive widget but as a dropdown:</p>
<!-- /wp:paragraph -->
<!-- wp:archives {"displayAsDropdown":true,"showPostCounts":true} /-->
<!-- wp:calendar /-->
<!-- wp:paragraph -->
<p>The Category widget block has an additional option for showing category hierarchies:</p>
<!-- /wp:paragraph -->
<!-- wp:categories {"displayAsDropdown":true,"showHierarchy":true,"showPostCounts":true} /-->
<!-- wp:paragraph -->
<p>The Latest Comments widget can display or hide the avatars, the date, and the comment excerpt:</p>
<!-- /wp:paragraph -->
<!-- wp:latest-comments {"commentsToShow":4} /-->
<!-- wp:paragraph -->
<p>Here is an example of the Comments widget with all the options disabled. The number of comments has been reduced to two.</p>
<!-- /wp:paragraph -->
<!-- wp:latest-comments {"commentsToShow":2,"displayAvatar":false,"displayDate":false,"displayExcerpt":false} /-->
<!-- wp:paragraph -->
<p>And here is the Latest Posts widget in the list view, with dates:</p>
<!-- /wp:paragraph -->
<!-- wp:latest-posts {"displayPostDate":true} /-->
<!-- wp:paragraph -->
<p>Grid view, now sorted from A -Z.</p>
<!-- /wp:paragraph -->
<!-- wp:latest-posts {"postLayout":"grid","order":"asc","orderBy":"title"} /-->
<!-- wp:paragraph -->
<p>You can also change the number of columns used to display the latest posts. The block below only displays posts from the Block category:</p>
<!-- /wp:paragraph -->
<!-- wp:latest-posts {"categories":"6","postsToShow":10,"displayPostDate":true,"postLayout":"grid","columns":5} /-->
<!-- wp:paragraph -->
<p>Search widget:</p>
<!-- /wp:paragraph -->
<!-- wp:search /-->
<!-- wp:paragraph -->
<p>Tag Cloud widget:</p>
<!-- /wp:paragraph -->
<!-- wp:tag-cloud /-->
<!-- wp:paragraph -->
<p>RSS Feed widget:</p>
<!-- /wp:paragraph -->
<!-- wp:rss {"feedURL":"https://make.wordpress.org/themes/feed/"} /-->
<!-- wp:columns -->
<div class="wp-block-columns"><!-- wp:column -->
<div class="wp-block-column"><!-- wp:paragraph -->
<p>This page tests how the theme displays the columns block. The first block tests a two column block with paragraphs.</p>
<!-- /wp:paragraph --></div>
<!-- /wp:column -->
<!-- wp:column -->
<div class="wp-block-column"><!-- wp:paragraph -->
<p>This is the <strong>second</strong> column. It should align next to the first column. Reduce the browser window width to test the responsiveness.</p>
<!-- /wp:paragraph --></div>
<!-- /wp:column --></div>
<!-- /wp:columns -->
<!-- wp:columns -->
<div class="wp-block-columns"><!-- wp:column -->
<div class="wp-block-column"><!-- wp:paragraph -->
<p>This is the second column block. It has <strong>3</strong> columns.</p>
<!-- /wp:paragraph --></div>
<!-- /wp:column -->
<!-- wp:column -->
<div class="wp-block-column"><!-- wp:paragraph -->
<p>Paragraph 2 is in the middle.</p>
<!-- /wp:paragraph --></div>
<!-- /wp:column -->
<!-- wp:column -->
<div class="wp-block-column"><!-- wp:paragraph -->
<p>Paragraph 3 is in the last column.</p>
<!-- /wp:paragraph --></div>
<!-- /wp:column --></div>
<!-- /wp:columns -->
<!-- wp:columns -->
<div class="wp-block-columns"><!-- wp:column -->
<div class="wp-block-column"><!-- wp:paragraph -->
<p> The third column block has <strong>4</strong> columns. Make sure that all the text is visible and that it is not cut off. </p>
<!-- /wp:paragraph --></div>
<!-- /wp:column -->
<!-- wp:column -->
<div class="wp-block-column"><!-- wp:paragraph -->
<p>Now the columns are getting narrower.</p>
<!-- /wp:paragraph --></div>
<!-- /wp:column -->
<!-- wp:column -->
<div class="wp-block-column"><!-- wp:paragraph -->
<p>The margins between the columns should be wide enough,</p>
<!-- /wp:paragraph --></div>
<!-- /wp:column -->
<!-- wp:column -->
<div class="wp-block-column"><!-- wp:paragraph -->
<p>so that the content of the columns does not run into or overlap each other.</p>
<!-- /wp:paragraph --></div>
<!-- /wp:column --></div>
<!-- /wp:columns -->
<!-- wp:columns -->
<div class="wp-block-columns"><!-- wp:column -->
<div class="wp-block-column"><!-- wp:paragraph -->
<p>Column one.</p>
<!-- /wp:paragraph --></div>
<!-- /wp:column -->
<!-- wp:column -->
<div class="wp-block-column"><!-- wp:paragraph -->
<p>Column two.</p>
<!-- /wp:paragraph --></div>
<!-- /wp:column -->
<!-- wp:column -->
<div class="wp-block-column"><!-- wp:paragraph -->
<p>Column three.</p>
<!-- /wp:paragraph --></div>
<!-- /wp:column -->
<!-- wp:column -->
<div class="wp-block-column"><!-- wp:paragraph -->
<p>Column four.</p>
<!-- /wp:paragraph --></div>
<!-- /wp:column -->
<!-- wp:column -->
<div class="wp-block-column"><!-- wp:paragraph -->
<p>Column <strong>five</strong>.</p>
<!-- /wp:paragraph --></div>
<!-- /wp:column --></div>
<!-- /wp:columns -->
<!-- wp:paragraph -->
<p>To change the number of columns, select the column block to open the settings panel. You can show up to 6 columns. If the theme has support for wide align, you can also set the alignments to wide and full width.</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>Below is a column block with six columns, and no alignment:</p>
<!-- /wp:paragraph -->
<!-- wp:columns -->
<div class="wp-block-columns"><!-- wp:column -->
<div class="wp-block-column"><!-- wp:paragraph -->
<p>Column one.</p>
<!-- /wp:paragraph --></div>
<!-- /wp:column -->
<!-- wp:column -->
<div class="wp-block-column"><!-- wp:paragraph -->
<p>Column two.</p>
<!-- /wp:paragraph --></div>
<!-- /wp:column -->
<!-- wp:column -->
<div class="wp-block-column"><!-- wp:paragraph -->
<p>Column three.</p>
<!-- /wp:paragraph --></div>
<!-- /wp:column -->
<!-- wp:column -->
<div class="wp-block-column"><!-- wp:paragraph -->
<p>Column four.</p>
<!-- /wp:paragraph --></div>
<!-- /wp:column -->
<!-- wp:column -->
<div class="wp-block-column"><!-- wp:paragraph -->
<p>Column five.</p>
<!-- /wp:paragraph --></div>
<!-- /wp:column -->
<!-- wp:column -->
<div class="wp-block-column"><!-- wp:paragraph -->
<p>Column six.</p>
<!-- /wp:paragraph --></div>
<!-- /wp:column --></div>
<!-- /wp:columns -->
<!-- wp:paragraph -->
<p>Next is a 3 column block, with a wide alignment:</p>
<!-- /wp:paragraph -->
<!-- wp:columns {"align":"wide"} -->
<div class="wp-block-columns alignwide"><!-- wp:column -->
<div class="wp-block-column"><!-- wp:paragraph -->
<p>Column one.</p>
<!-- /wp:paragraph --></div>
<!-- /wp:column -->
<!-- wp:column -->
<div class="wp-block-column"><!-- wp:paragraph -->
<p>Column two.</p>
<!-- /wp:paragraph --></div>
<!-- /wp:column -->
<!-- wp:column -->
<div class="wp-block-column"><!-- wp:paragraph -->
<p>Column three.</p>
<!-- /wp:paragraph --></div>
<!-- /wp:column --></div>
<!-- /wp:columns -->
<!-- wp:paragraph -->
<p>And here is a two column block with full width, and a longer text. Make sure that the text wraps correctly.</p>
<!-- /wp:paragraph -->
<!-- wp:columns {"align":"full","className":"has-2-columns"} -->
<div class="wp-block-columns alignfull has-2-columns"><!-- wp:column -->
<div class="wp-block-column"><!-- wp:paragraph -->
<p>This is column one. Sometimes, you may want to use columns to display a larger text, so, lets add some <strong>more words</strong>. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec mollis. Quisque convallis libero in sapien pharetra tincidunt. Aliquam elit ante, malesuada id, tempor eu, gravida id, odio. Maecenas suscipit, risus et eleifend imperdiet, nisi orci ullamcorper massa, et adipiscing orci velit quis magna. Praesent sit amet ligula id orci venenatis auctor. Phasellus porttitor, metus non tincidunt dapibus, orci pede pretium neque, sit amet adipiscing ipsum lectus et libero. <em>Aenean</em> bibendum. Curabitur mattis quam id urna. Vivamus dui. Donec nonummy lacinia lorem. Cras risus arcu, sodales ac, ultrices ac, mollis quis, justo. Sed a libero. Quisque risus erat, posuere at, tristique non, lacinia quis, eros.</p>
<!-- /wp:paragraph --></div>
<!-- /wp:column -->
<!-- wp:column -->
<div class="wp-block-column"><!-- wp:paragraph -->
<p><strong>Column two.</strong> Cras volutpat, lacus quis semper pharetra, nisi enim dignissim est, et sollicitudin quam ipsum vel mi. Sed commodo urna ac urna. Nullam eu tortor. Curabitur sodales scelerisque magna. Donec ultricies tristique pede. Nullam libero. Nam sollicitudin f<em>elis vel metus. Nullam posuere molestie metus. Nullam molestie, nunc id suscipit rhoncus, felis mi </em>vulputate lacus, a ultrices tortor dolor eget augue. Aenean ultricies felis ut turpis. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Suspendisse placerat tellus ac nulla. Proin adipiscing sem ac risus. Maecenas nisi. Cras semper.</p>
<!-- /wp:paragraph --></div>
<!-- /wp:column --></div>
<!-- /wp:columns -->
<!-- wp:paragraph -->
<p>We can also add blocks inside columns:</p>
<!-- /wp:paragraph -->
<!-- wp:columns {"align":"wide"} -->
<div class="wp-block-columns alignwide"><!-- wp:column -->
<div class="wp-block-column"><!-- wp:list {"ordered":true} -->
<ol><li>This is a numbered list,</li><li>inside a 3 column block</li><li>with a wide alignment.</li></ol>
<!-- /wp:list --></div>
<!-- /wp:column -->
<!-- wp:column -->
<div class="wp-block-column"><!-- wp:paragraph -->
<p>The middle column has a paragraph with an image block below.</p>
<!-- /wp:paragraph -->
<!-- wp:image {"id":611} -->
<figure class="wp-block-image"><img src="https://wpthemetestdata.files.wordpress.com/2008/06/canola2.jpg" alt="canola" class="wp-image-611"/><figcaption>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec mollis. Quisque convallis libero in sapien pharetra tincidunt. Aliquam elit ante, malesuada id, tempor eu, gravida id, odio. Maecenas suscipit, risus et eleifend imperdiet, nisi orci ullamcorper massa, et adipiscing orci velit quis magna.</figcaption></figure>
<!-- /wp:image --></div>
<!-- /wp:column -->
<!-- wp:column -->
<div class="wp-block-column"><!-- wp:quote -->
<blockquote class="wp-block-quote"><p>-This third column has a quote</p><cite>Theme Reviewer<br></cite></blockquote>
<!-- /wp:quote --></div>
<!-- /wp:column --></div>
<!-- /wp:columns -->
<!-- wp:paragraph -->
<p><strong>But wait there is more!</strong>&nbsp; We also have a block called <em>Media &amp; Text,</em> which is a two column block that helps you display media and text content next to each other, without having to first setup a column block:</p>
<!-- /wp:paragraph -->
<!-- wp:media-text {"mediaId":617,"mediaType":"image"} -->
<div class="wp-block-media-text alignwide"><figure class="wp-block-media-text__media"><img src="https://wpthemetestdata.files.wordpress.com/2008/06/dsc20050813_115856_52.jpg" alt="dsc20050813_115856_52" class="wp-image-617"/></figure><div class="wp-block-media-text__content"><!-- wp:paragraph {"placeholder":"Content…","fontSize":"large"} -->
<p class="has-large-font-size">Media &amp; Text</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>A paragraph block sits ready to be used, below your headline.</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p></p>
<!-- /wp:paragraph --></div></div>
<!-- /wp:media-text -->
<!-- wp:cover {"url":"https://wpthemetestdata.files.wordpress.com/2008/06/dsc20050102_192118_51.jpg","align":"left","id":761} -->
<div class="wp-block-cover has-background-dim alignleft" style="background-image:url(https://wpthemetestdata.files.wordpress.com/2008/06/dsc20050102_192118_51.jpg)"><p class="wp-block-cover-text">This is a left aligned cover block with a background image.</p></div>
<!-- /wp:cover -->
<!-- wp:paragraph -->
<p>The cover block lets you add text on top of images or videos.</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>This blocktype has several alignment options, and you can also align or center the text inside the block.</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>The background image can be fixed and you can change its opacity and add an overlay color.</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>Make sure that the text wraps correctly over the image, and that text markup and alignments are working.</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>The next image should have a pink overlay color, the text should be bold and aligned to the left:</p>
<!-- /wp:paragraph -->
<!-- wp:cover {"url":"https://wpthemetestdata.files.wordpress.com/2008/06/canola2.jpg","align":"center","contentAlign":"left","id":611,"overlayColor":"pale-pink"} -->
<div class="wp-block-cover has-pale-pink-background-color has-background-dim has-left-content aligncenter" style="background-image:url(https://wpthemetestdata.files.wordpress.com/2008/06/canola2.jpg)"><p class="wp-block-cover-text"><strong>A center aligned cover image block, with a left aligned text.</strong></p></div>
<!-- /wp:cover -->
<!-- wp:cover {"url":"https://wpthemetestdata.files.wordpress.com/2008/06/dsc04563.jpg","align":"full","id":759,"hasParallax":true,"dimRatio":20} -->
<div class="wp-block-cover has-background-dim-20 has-background-dim has-parallax alignfull" style="background-image:url(https://wpthemetestdata.files.wordpress.com/2008/06/dsc04563.jpg)"><p class="wp-block-cover-text">This is a full width cover block with a fixed background image with a 20% opacity.</p></div>
<!-- /wp:cover -->
<!-- wp:paragraph {"align":"center"} -->
<p style="text-align:center">Make sure that all the text is readable.</p>
<!-- /wp:paragraph -->
<!-- wp:cover {"url":"https://wpthemetestdata.files.wordpress.com/2008/06/dsc03149.jpg","align":"wide","id":758} -->
<div class="wp-block-cover has-background-dim alignwide" style="background-image:url(https://wpthemetestdata.files.wordpress.com/2008/06/dsc03149.jpg)"><p class="wp-block-cover-text">Our last cover image block has a wide width.</p></div>
<!-- /wp:cover -->
<!-- wp:cover {"url":"https://wpthemetestdata.files.wordpress.com/2013/12/2014-slider-mobile-behavior.mov","align":"wide","id":1800,"backgroundType":"video"} -->
<div class="wp-block-cover has-background-dim alignwide"><video class="wp-block-cover__video-background" autoplay muted loop src="https://wpthemetestdata.files.wordpress.com/2013/12/2014-slider-mobile-behavior.mov"></video><p class="wp-block-cover-text">This is a wide cover block with a video background.</p></div>
<!-- /wp:cover -->
<!-- wp:cover {"url":"https://wpthemetestdata.files.wordpress.com/2013/12/2014-slider-mobile-behavior.mov","align":"center","id":1800,"backgroundType":"video"} -->
<div class="wp-block-cover has-background-dim aligncenter"><video class="wp-block-cover__video-background" autoplay muted loop src="https://wpthemetestdata.files.wordpress.com/2013/12/2014-slider-mobile-behavior.mov"></video><p class="wp-block-cover-text">Compare the video and image blocks.<br>This block is centered.</p></div>
<!-- /wp:cover -->
<!-- wp:paragraph -->
<p>The block below has no alignment, and the text is a link. Overlay colors must also work with video backgrounds.</p>
<!-- /wp:paragraph -->
<!-- wp:cover {"url":"https://wpthemetestdata.files.wordpress.com/2013/12/2014-slider-mobile-behavior.mov","id":1800,"dimRatio":60,"customOverlayColor":"#f4399d","backgroundType":"video"} -->
<div class="wp-block-cover has-background-dim-60 has-background-dim" style="background-color:#f4399d"><video class="wp-block-cover__video-background" autoplay muted loop src="https://wpthemetestdata.files.wordpress.com/2013/12/2014-slider-mobile-behavior.mov"></video><p class="wp-block-cover-text"><a href="https://wordpress.org/gutenberg/">This page needed more pink</a>. </p></div>
<!-- /wp:cover -->
<!-- wp:paragraph -->
<p>Button blocks are not semantically <em>buttons</em>, but links inside a styled div.&nbsp;</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph {"align":"left"} -->
<p style="text-align:left">If you do not add a link, a link tag without an anchor will be used.</p>
<!-- /wp:paragraph -->
<!-- wp:button {"align":"left"} -->
<div class="wp-block-button alignleft"><a class="wp-block-button__link">Left aligned<br></a></div>
<!-- /wp:button -->
<!-- wp:paragraph -->
<p>Check to make sure that the text wraps correctly when the button has more than one line of text, and when it is extra long.</p>
<!-- /wp:paragraph -->
<!-- wp:button {"align":"center"} -->
<div class="wp-block-button aligncenter"><a class="wp-block-button__link">A centered button with <br>more than <br>one line of text</a></div>
<!-- /wp:button -->
<!-- wp:paragraph -->
<p>Buttons have three styles:&nbsp;</p>
<!-- /wp:paragraph -->
<!-- wp:button -->
<div class="wp-block-button"><a class="wp-block-button__link">Rounded</a></div>
<!-- /wp:button -->
<!-- wp:button {"className":"is-style-outline"} -->
<div class="wp-block-button is-style-outline"><a class="wp-block-button__link">Outline<br></a></div>
<!-- /wp:button -->
<!-- wp:button {"className":"is-style-squared"} -->
<div class="wp-block-button is-style-squared"><a class="wp-block-button__link">Square<br></a></div>
<!-- /wp:button -->
<!-- wp:paragraph -->
<p>If the theme has a custom color palette, test that background color and text color settings work correctly.&nbsp;</p>
<!-- /wp:paragraph -->
<!-- wp:button -->
<div class="wp-block-button"><a class="wp-block-button__link" href="https://wordpress.org/gutenberg/handbook/extensibility/theme-support/#block-color-palette">Read more about the color palettes in the handbook.</a></div>
<!-- /wp:button -->
<!-- wp:paragraph -->
<p>Now lets test how buttons display together with large texts.</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec mollis. Quisque convallis libero in sapien pharetra tincidunt. Aliquam elit ante, malesuada id, tempor eu, gravida id, odio. </p>
<!-- /wp:paragraph -->
<!-- wp:button {"align":"right"} -->
<div class="wp-block-button alignright"><a class="wp-block-button__link">Right aligned<br></a></div>
<!-- /wp:button -->
<!-- wp:paragraph -->
<p>Maecenas suscipit, risus et eleifend imperdiet, nisi orci ullamcorper massa, et adipiscing orci velit quis magna. Praesent sit amet ligula id orci venenatis auctor. Phasellus porttitor, metus non tincidunt dapibus, orci pede pretium neque, sit amet adipiscing ipsum lectus et libero. Aenean bibendum. Curabitur mattis quam id urna. </p>
<!-- /wp:paragraph -->
<!-- wp:button {"align":"left"} -->
<div class="wp-block-button alignleft"><a class="wp-block-button__link">Left aligned<br></a></div>
<!-- /wp:button -->
<!-- wp:paragraph -->
<p>Vivamus dui. Donec nonummy lacinia lorem. Cras risus arcu, sodales ac, ultrices ac, mollis quis, justo. Sed a libero. Quisque risus erat, posuere at, tristique non, lacinia quis, eros.</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>The quote block has two styles,&nbsp;regular:</p>
<!-- /wp:paragraph -->
<!-- wp:quote -->
<blockquote class="wp-block-quote"><p>Gutenberg is more than an editor.</p><cite>The Gutenberg Team<br></cite></blockquote>
<!-- /wp:quote -->
<!-- wp:paragraph -->
<p>and large:</p>
<!-- /wp:paragraph -->
<!-- wp:quote {"className":"is-style-large"} -->
<blockquote class="wp-block-quote is-style-large"><p>Yes, it is a press, certainly, but a press from which shall flow in inexhaustible streams, the most abundant and most marvelous liquor that has ever flowed to relieve the thirst of men! </p><cite><br><em>Johannes Gutenberg</em><br></cite></blockquote>
<!-- /wp:quote -->
<!-- wp:paragraph -->
<p>The quote blocks themselves have no alignments but the text can be aligned, bold, italic, and linked:</p>
<!-- /wp:paragraph -->
<!-- wp:quote {"align":"right","className":"extraclass"} -->
<blockquote class="wp-block-quote has-text-align-right extraclass"><p><strong><em><a href="https://developer.wordpress.org/block-editor/developers/themes/theme-support/">Right</a></em></strong></p><cite>Theme Review<br></cite></blockquote>
<!-- /wp:quote -->
<!-- wp:paragraph -->
<p>In addition to the quote block, we also have the <em>pull quote</em>, with a regular and a solid color style.</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>You can change the color of the border and the text with the regular style:</p>
<!-- /wp:paragraph -->
<!-- wp:pullquote {"customMainColor":"#b80000","textColor":"light-gray"} -->
<figure class="wp-block-pullquote" style="border-color:#b80000"><blockquote class="has-text-color has-light-gray-color"><p>In addition to the quote block, we also have the pull quote.</p><cite>Theme Reviewer</cite></blockquote></figure>
<!-- /wp:pullquote -->
<!-- wp:paragraph -->
<p>Or change the background color and text color with the solid color style:</p>
<!-- /wp:paragraph -->
<!-- wp:pullquote {"mainColor":"cyan-bluish-gray","textColor":"very-dark-gray","className":"has-cyan-bluish-gray-background-color is-style-solid-color"} -->
<figure class="wp-block-pullquote has-background has-cyan-bluish-gray-background-color is-style-solid-color"><blockquote class="has-text-color has-very-dark-gray-color"><p>a solid color style</p><cite>Theme Reviewer</cite></blockquote></figure>
<!-- /wp:pullquote -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment