{"id":1916,"date":"2018-11-01T06:08:25","date_gmt":"2018-11-01T06:08:25","guid":{"rendered":"https:\/\/wpthemetestdata.wordpress.com\/?p=1734"},"modified":"2018-11-01T06:08:25","modified_gmt":"2018-11-01T06:08:25","slug":"blocks-layout-elements","status":"publish","type":"post","link":"https:\/\/blog.zhdk.ch\/wordpress\/blocks-layout-elements\/","title":{"rendered":"Block category: Layout Elements"},"content":{"rendered":"\n<div class=\"wp-block-group has-background\" style=\"background-color:#d8f6ec\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<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>\n\n\n<p>This group block has a light green background color.<\/p>\n\n\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link\">A button<\/a><\/div>\n\n\n<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&#8217;t show on the single page or on themes showing excerpts.<\/p>\n<\/div><\/div>\n\n\n<!--more-->\n\n\n<div class=\"wp-block-columns has-4-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p>The columns:<\/p>\n<\/div>\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p>Column two.<\/p>\n<\/div>\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p>Column three.<\/p>\n<\/div>\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p>Column four.<\/p>\n<\/div>\n<\/div>\n\n\n<div class=\"wp-block-media-text alignwide\"><figure class=\"wp-block-media-text__media\"><img loading=\"lazy\" decoding=\"async\" width=\"1600\" height=\"1066\" src=\"https:\/\/blog.zhdk.ch\/wordpress\/files\/2008\/06\/dcp_2082.jpg\" alt=\"Boardwalk\" class=\"wp-image-757\" srcset=\"https:\/\/blog.zhdk.ch\/wordpress\/files\/2008\/06\/dcp_2082.jpg 1600w, https:\/\/blog.zhdk.ch\/wordpress\/files\/2008\/06\/dcp_2082-300x200.jpg 300w, https:\/\/blog.zhdk.ch\/wordpress\/files\/2008\/06\/dcp_2082-1024x682.jpg 1024w, https:\/\/blog.zhdk.ch\/wordpress\/files\/2008\/06\/dcp_2082-768x512.jpg 768w, https:\/\/blog.zhdk.ch\/wordpress\/files\/2008\/06\/dcp_2082-1536x1023.jpg 1536w\" sizes=\"auto, (max-width: 1600px) 100vw, 1600px\" \/><\/figure><div class=\"wp-block-media-text__content\">\n<p class=\"has-large-font-size\">Media &amp;Text<\/p>\n\n\n<p>For displaying media and text next to each other. By default, the media is to the left.<\/p>\n<\/div><\/div>\n\n\n<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 loading=\"lazy\" decoding=\"async\" width=\"1600\" height=\"1200\" src=\"https:\/\/blog.zhdk.ch\/wordpress\/files\/2008\/06\/100_5540.jpg\" alt=\"Golden Gate Bridge\" class=\"wp-image-755\" srcset=\"https:\/\/blog.zhdk.ch\/wordpress\/files\/2008\/06\/100_5540.jpg 1600w, https:\/\/blog.zhdk.ch\/wordpress\/files\/2008\/06\/100_5540-300x225.jpg 300w, https:\/\/blog.zhdk.ch\/wordpress\/files\/2008\/06\/100_5540-1024x768.jpg 1024w, https:\/\/blog.zhdk.ch\/wordpress\/files\/2008\/06\/100_5540-768x576.jpg 768w, https:\/\/blog.zhdk.ch\/wordpress\/files\/2008\/06\/100_5540-1536x1152.jpg 1536w\" sizes=\"auto, (max-width: 1600px) 100vw, 1600px\" \/><\/figure><div class=\"wp-block-media-text__content\">\n<p class=\"has-large-font-size\">This time our block is full width, and the image is to the right.<\/p>\n\n\n<p>The background color is a pale blue.&nbsp;<\/p>\n<\/div><\/div>\n\n\n<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>\n\n\n<p>The control these settings, the block uses the css classes &#8222;has-media-on-the-right&#8220; and &#8222;is-stacked-on-mobile&#8220;.<\/p>\n\n\n<p>The separator has three styles: default, wide line, and dots.<\/p>\n\n\n<hr class=\"wp-block-separator\" \/>\n\n\n<hr class=\"wp-block-separator is-style-wide\" \/>\n\n\n<hr class=\"wp-block-separator is-style-dots\" \/>\n\n\n<p>The spacer block has a default height of 100 pixels:<\/p>\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n<p>And finally, the page break:<\/p>\n\n\n<!--nextpage-->\n\n\n<p>This paragraph block is on page two, after the page break.<\/p>\n\n\n<div class=\"wp-block-button is-style-outline is-style-outline--1\"><a class=\"wp-block-button__link\" href=\"https:\/\/wpthemetestdata.wordpress.com\/2018\/11\/03\/block-button\/\">another button<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>The Layout Elements category includes the following blocks: Group, Button, Columns, Media &amp; Text, separator, spacer, read more, and page break. This group block has a light green background color. The read more block should be right below this text, but only on list pages of themes that show the full content. It won&#8217;t show &hellip; <a href=\"https:\/\/blog.zhdk.ch\/wordpress\/blocks-layout-elements\/\" class=\"more-link\"><span class=\"screen-reader-text\">Block category: Layout Elements<\/span> weiterlesen<\/a><\/p>\n","protected":false},"author":4030,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[582256],"tags":[582406],"class_list":["post-1916","post","type-post","status-publish","format-standard","hentry","category-block","tag-content-2"],"_links":{"self":[{"href":"https:\/\/blog.zhdk.ch\/wordpress\/wp-json\/wp\/v2\/posts\/1916","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.zhdk.ch\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.zhdk.ch\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.zhdk.ch\/wordpress\/wp-json\/wp\/v2\/users\/4030"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.zhdk.ch\/wordpress\/wp-json\/wp\/v2\/comments?post=1916"}],"version-history":[{"count":0,"href":"https:\/\/blog.zhdk.ch\/wordpress\/wp-json\/wp\/v2\/posts\/1916\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.zhdk.ch\/wordpress\/wp-json\/wp\/v2\/media?parent=1916"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.zhdk.ch\/wordpress\/wp-json\/wp\/v2\/categories?post=1916"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.zhdk.ch\/wordpress\/wp-json\/wp\/v2\/tags?post=1916"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}