{"id":1784,"date":"2018-11-03T12:25:00","date_gmt":"2018-11-03T12:25:00","guid":{"rendered":"https:\/\/wpthemetestdata.wordpress.com\/?p=1745"},"modified":"2024-02-27T20:07:09","modified_gmt":"2024-02-27T20:07:09","slug":"block-cover","status":"publish","type":"post","link":"https:\/\/giant.instawp.link\/?p=1784","title":{"rendered":"Block: Cover"},"content":{"rendered":"<style>img#mv-trellis-img-1::before{padding-top:75%; }img#mv-trellis-img-1{display:block;}img#mv-trellis-img-2::before{padding-top:75%; }img#mv-trellis-img-2{display:block;}img#mv-trellis-img-3::before{padding-top:75%; }img#mv-trellis-img-3{display:block;}<\/style>\r\n<div class=\"wp-block-cover alignleft\"><noscript><img loading=\"lazy\" decoding=\"async\" width=\"1600\" height=\"1200\" class=\"wp-block-cover__image-background wp-image-761\" src=\"https:\/\/giant.instawp.link\/wp-content\/uploads\/2008\/06\/dsc20050102_192118_51.jpg\" data-object-fit=\"cover\" srcset=\"https:\/\/giant.instawp.link\/wp-content\/uploads\/2008\/06\/dsc20050102_192118_51.jpg 1600w, https:\/\/giant.instawp.link\/wp-content\/uploads\/2008\/06\/dsc20050102_192118_51-600x450.jpg 600w, https:\/\/giant.instawp.link\/wp-content\/uploads\/2008\/06\/dsc20050102_192118_51-300x225.jpg 300w, https:\/\/giant.instawp.link\/wp-content\/uploads\/2008\/06\/dsc20050102_192118_51-1024x768.jpg 1024w, https:\/\/giant.instawp.link\/wp-content\/uploads\/2008\/06\/dsc20050102_192118_51-768x576.jpg 768w, https:\/\/giant.instawp.link\/wp-content\/uploads\/2008\/06\/dsc20050102_192118_51-728x546.jpg 728w, https:\/\/giant.instawp.link\/wp-content\/uploads\/2008\/06\/dsc20050102_192118_51-960x720.jpg 960w, https:\/\/giant.instawp.link\/wp-content\/uploads\/2008\/06\/dsc20050102_192118_51-1080x810.jpg 1080w, https:\/\/giant.instawp.link\/wp-content\/uploads\/2008\/06\/dsc20050102_192118_51-1200x900.jpg 1200w\" sizes=\"(max-width: 760px) calc(100vw - 20px), 720px\"><\/noscript><img loading=\"eager\" decoding=\"async\" width=\"1600\" height=\"1200\" class=\"wp-block-cover__image-background wp-image-761 eager-load\" src=\"data:image\/svg+xml,%3Csvg%20xmlns='http:\/\/www.w3.org\/2000\/svg'%20viewBox='0%200%201600%201200'%3E%3Crect%20width='1600'%20height='1200'%20style='fill:%23e3e3e3'\/%3E%3C\/svg%3E\" data-object-fit=\"cover\" sizes=\"(max-width: 760px) calc(100vw - 20px), 720px\" data-pin-media=\"https:\/\/giant.instawp.link\/wp-content\/uploads\/2008\/06\/dsc20050102_192118_51.jpg\" id=\"mv-trellis-img-1\" data-src=\"https:\/\/giant.instawp.link\/wp-content\/uploads\/2008\/06\/dsc20050102_192118_51.jpg\" data-srcset=\"https:\/\/giant.instawp.link\/wp-content\/uploads\/2008\/06\/dsc20050102_192118_51.jpg 1600w, https:\/\/giant.instawp.link\/wp-content\/uploads\/2008\/06\/dsc20050102_192118_51-600x450.jpg 600w, https:\/\/giant.instawp.link\/wp-content\/uploads\/2008\/06\/dsc20050102_192118_51-300x225.jpg 300w, https:\/\/giant.instawp.link\/wp-content\/uploads\/2008\/06\/dsc20050102_192118_51-1024x768.jpg 1024w, https:\/\/giant.instawp.link\/wp-content\/uploads\/2008\/06\/dsc20050102_192118_51-768x576.jpg 768w, https:\/\/giant.instawp.link\/wp-content\/uploads\/2008\/06\/dsc20050102_192118_51-728x546.jpg 728w, https:\/\/giant.instawp.link\/wp-content\/uploads\/2008\/06\/dsc20050102_192118_51-960x720.jpg 960w, https:\/\/giant.instawp.link\/wp-content\/uploads\/2008\/06\/dsc20050102_192118_51-1080x810.jpg 1080w, https:\/\/giant.instawp.link\/wp-content\/uploads\/2008\/06\/dsc20050102_192118_51-1200x900.jpg 1200w\" data-svg=\"1\" data-trellis-processed=\"1\">\r\n<div class=\"wp-block-cover__inner-container is-layout-flow wp-block-cover-is-layout-flow\">\r\n<p class=\"has-text-align-center has-large-font-size\">This is a left aligned cover block with a background image.<\/p>\r\n<\/div>\r\n<\/div>\r\n\r\n\r\n\r\n<p>The cover block lets you add text on top of images or videos.<\/p>\r\n\r\n\r\n\r\n<p>This blocktype has several alignment options, and you can also align or center the text inside the block.<\/p>\r\n\r\n\r\n\r\n<p>The background image can be fixed and you can change its opacity and add an overlay color.<\/p>\r\n\r\n\r\n\r\n<p>Make sure that the text wraps correctly over the image, and that text markup and alignments are working.<\/p>\r\n\r\n\r\n\r\n<p>The next image should have a pink overlay color, the text should be bold and aligned to the left:<\/p>\r\n\r\n\r\n\r\n<div class=\"wp-block-cover aligncenter is-light\"><noscript><img loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"480\" class=\"wp-block-cover__image-background wp-image-611\" src=\"https:\/\/giant.instawp.link\/wp-content\/uploads\/2008\/06\/canola2.jpg\" data-object-fit=\"cover\" srcset=\"https:\/\/giant.instawp.link\/wp-content\/uploads\/2008\/06\/canola2.jpg 640w, https:\/\/giant.instawp.link\/wp-content\/uploads\/2008\/06\/canola2-600x450.jpg 600w, https:\/\/giant.instawp.link\/wp-content\/uploads\/2008\/06\/canola2-300x225.jpg 300w\" sizes=\"(max-width: 640px) 100vw, 640px\"><\/noscript><img loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"480\" class=\"wp-block-cover__image-background wp-image-611 lazyload\" src=\"https:\/\/giant.instawp.link\/wp-content\/uploads\/2008\/06\/canola2.jpg\" data-object-fit=\"cover\" srcset=\"https:\/\/giant.instawp.link\/wp-content\/uploads\/2008\/06\/canola2.jpg 640w, https:\/\/giant.instawp.link\/wp-content\/uploads\/2008\/06\/canola2-600x450.jpg 600w, https:\/\/giant.instawp.link\/wp-content\/uploads\/2008\/06\/canola2-300x225.jpg 300w\" sizes=\"(max-width: 640px) 100vw, 640px\" data-pin-media=\"https:\/\/giant.instawp.link\/wp-content\/uploads\/2008\/06\/canola2.jpg\" id=\"mv-trellis-img-2\" data-trellis-processed=\"1\">\r\n<div class=\"wp-block-cover__inner-container is-layout-flow wp-block-cover-is-layout-flow\">\r\n<p class=\"has-text-align-left has-large-font-size\"><strong>A center aligned cover image block, with a left aligned text.<\/strong><\/p>\r\n<\/div>\r\n<\/div>\r\n\r\n\r\n\r\n<div class=\"wp-block-cover alignfull is-light has-parallax\" style=\"background-image: url('https:\/\/giant.instawp.link\/wp-content\/uploads\/2008\/06\/dsc04563.jpg');\">\r\n<div class=\"wp-block-cover__inner-container is-layout-flow wp-block-cover-is-layout-flow\">\r\n<p class=\"has-text-align-center has-large-font-size\">This is a full width cover block with a fixed background image with a 20% opacity.<\/p>\r\n<\/div>\r\n<\/div>\r\n\r\n\r\n\r\n<p class=\"has-text-align-center\">Make sure that all the text is readable.<\/p>\r\n\r\n\r\n\r\n<div class=\"wp-block-cover alignwide\"><noscript><img loading=\"lazy\" decoding=\"async\" width=\"1280\" height=\"960\" class=\"wp-block-cover__image-background wp-image-758\" src=\"https:\/\/giant.instawp.link\/wp-content\/uploads\/2008\/06\/dsc03149.jpg\" data-object-fit=\"cover\" srcset=\"https:\/\/giant.instawp.link\/wp-content\/uploads\/2008\/06\/dsc03149.jpg 1280w, https:\/\/giant.instawp.link\/wp-content\/uploads\/2008\/06\/dsc03149-600x450.jpg 600w, https:\/\/giant.instawp.link\/wp-content\/uploads\/2008\/06\/dsc03149-300x225.jpg 300w, https:\/\/giant.instawp.link\/wp-content\/uploads\/2008\/06\/dsc03149-1024x768.jpg 1024w, https:\/\/giant.instawp.link\/wp-content\/uploads\/2008\/06\/dsc03149-768x576.jpg 768w, https:\/\/giant.instawp.link\/wp-content\/uploads\/2008\/06\/dsc03149-728x546.jpg 728w, https:\/\/giant.instawp.link\/wp-content\/uploads\/2008\/06\/dsc03149-960x720.jpg 960w, https:\/\/giant.instawp.link\/wp-content\/uploads\/2008\/06\/dsc03149-1080x810.jpg 1080w, https:\/\/giant.instawp.link\/wp-content\/uploads\/2008\/06\/dsc03149-1200x900.jpg 1200w, https:\/\/giant.instawp.link\/wp-content\/uploads\/2008\/06\/dsc03149-320x240.jpg 320w, https:\/\/giant.instawp.link\/wp-content\/uploads\/2008\/06\/dsc03149-480x360.jpg 480w, https:\/\/giant.instawp.link\/wp-content\/uploads\/2008\/06\/dsc03149-720x540.jpg 720w, https:\/\/giant.instawp.link\/wp-content\/uploads\/2008\/06\/dsc03149-735x551.jpg 735w\" sizes=\"(max-width: 760px) calc(100vw - 20px), 720px\"><\/noscript><img loading=\"lazy\" decoding=\"async\" width=\"1280\" height=\"960\" class=\"wp-block-cover__image-background wp-image-758 lazyload\" src=\"https:\/\/giant.instawp.link\/wp-content\/uploads\/2008\/06\/dsc03149.jpg\" data-object-fit=\"cover\" srcset=\"https:\/\/giant.instawp.link\/wp-content\/uploads\/2008\/06\/dsc03149.jpg 1280w, https:\/\/giant.instawp.link\/wp-content\/uploads\/2008\/06\/dsc03149-600x450.jpg 600w, https:\/\/giant.instawp.link\/wp-content\/uploads\/2008\/06\/dsc03149-300x225.jpg 300w, https:\/\/giant.instawp.link\/wp-content\/uploads\/2008\/06\/dsc03149-1024x768.jpg 1024w, https:\/\/giant.instawp.link\/wp-content\/uploads\/2008\/06\/dsc03149-768x576.jpg 768w, https:\/\/giant.instawp.link\/wp-content\/uploads\/2008\/06\/dsc03149-728x546.jpg 728w, https:\/\/giant.instawp.link\/wp-content\/uploads\/2008\/06\/dsc03149-960x720.jpg 960w, https:\/\/giant.instawp.link\/wp-content\/uploads\/2008\/06\/dsc03149-1080x810.jpg 1080w, https:\/\/giant.instawp.link\/wp-content\/uploads\/2008\/06\/dsc03149-1200x900.jpg 1200w, https:\/\/giant.instawp.link\/wp-content\/uploads\/2008\/06\/dsc03149-320x240.jpg 320w, https:\/\/giant.instawp.link\/wp-content\/uploads\/2008\/06\/dsc03149-480x360.jpg 480w, https:\/\/giant.instawp.link\/wp-content\/uploads\/2008\/06\/dsc03149-720x540.jpg 720w, https:\/\/giant.instawp.link\/wp-content\/uploads\/2008\/06\/dsc03149-735x551.jpg 735w\" sizes=\"(max-width: 760px) calc(100vw - 20px), 720px\" data-pin-media=\"https:\/\/giant.instawp.link\/wp-content\/uploads\/2008\/06\/dsc03149.jpg\" id=\"mv-trellis-img-3\" data-trellis-processed=\"1\">\r\n<div class=\"wp-block-cover__inner-container is-layout-flow wp-block-cover-is-layout-flow\">\r\n<p class=\"has-text-align-center has-large-font-size\">Our last cover image block has a wide width.<\/p>\r\n<\/div>\r\n<\/div>\r\n\r\n\r\n\r\n<div class=\"wp-block-cover alignwide is-light\"><video class=\"wp-block-cover__video-background intrinsic-ignore\" src=\"https:\/\/giant.instawp.link\/wp-content\/uploads\/2013\/12\/2014-slider-mobile-behavior.mov\" autoplay=\"autoplay\" loop=\"loop\" muted=\"\" width=\"300\" height=\"150\" data-object-fit=\"cover\"><\/video>\r\n<div class=\"wp-block-cover__inner-container is-layout-flow wp-block-cover-is-layout-flow\">\r\n<p class=\"has-text-align-center has-large-font-size\">This is a wide cover block with a video background.<\/p>\r\n<\/div>\r\n<\/div>\r\n\r\n\r\n\r\n<div class=\"wp-block-cover aligncenter is-light\"><video class=\"wp-block-cover__video-background intrinsic-ignore\" src=\"https:\/\/giant.instawp.link\/wp-content\/uploads\/2013\/12\/2014-slider-mobile-behavior.mov\" autoplay=\"autoplay\" loop=\"loop\" muted=\"\" width=\"300\" height=\"150\" data-object-fit=\"cover\"><\/video>\r\n<div class=\"wp-block-cover__inner-container is-layout-flow wp-block-cover-is-layout-flow\">\r\n<p class=\"has-text-align-center has-large-font-size\">Compare the video and image blocks.<br>This block is centered.<\/p>\r\n<\/div>\r\n<\/div>\r\n\r\n\r\n\r\n<p>The block below has no alignment, and the text is a link. Overlay colors must also work with video backgrounds.<\/p>\r\n\r\n\r\n\r\n<div class=\"wp-block-cover\"><video class=\"wp-block-cover__video-background intrinsic-ignore\" src=\"https:\/\/giant.instawp.link\/wp-content\/uploads\/2013\/12\/2014-slider-mobile-behavior.mov\" autoplay=\"autoplay\" loop=\"loop\" muted=\"\" width=\"300\" height=\"150\" data-object-fit=\"cover\"><\/video>\r\n<div class=\"wp-block-cover__inner-container is-layout-flow wp-block-cover-is-layout-flow\">\r\n<p class=\"has-text-align-center has-large-font-size\"><a href=\"https:\/\/wordpress.org\/gutenberg\/\">This page needed more pink<\/a>.<\/p>\r\n<\/div>\r\n<\/div>\r\n","protected":false},"excerpt":{"rendered":"<p>The cover block lets you add text on top of images or videos. This blocktype has several alignment options, and you can also align or center the text inside the block. The background image can be fixed and you can change its opacity and add an overlay color. Make sure that the text wraps correctly &hellip;<\/p>\n","protected":false},"author":1,"featured_media":763,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"disable-in-feed":false,"article-schema-type":"","disable-critical-css":false,"footnotes":""},"categories":[6],"tags":[108],"_links":{"self":[{"href":"https:\/\/giant.instawp.link\/index.php?rest_route=\/wp\/v2\/posts\/1784"}],"collection":[{"href":"https:\/\/giant.instawp.link\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/giant.instawp.link\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/giant.instawp.link\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/giant.instawp.link\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1784"}],"version-history":[{"count":99,"href":"https:\/\/giant.instawp.link\/index.php?rest_route=\/wp\/v2\/posts\/1784\/revisions"}],"predecessor-version":[{"id":7125,"href":"https:\/\/giant.instawp.link\/index.php?rest_route=\/wp\/v2\/posts\/1784\/revisions\/7125"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/giant.instawp.link\/index.php?rest_route=\/wp\/v2\/media\/763"}],"wp:attachment":[{"href":"https:\/\/giant.instawp.link\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1784"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/giant.instawp.link\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1784"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/giant.instawp.link\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1784"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}