{"id":1784,"date":"2024-11-03T12:20:00","date_gmt":"2024-11-03T12:20:00","guid":{"rendered":"https:\/\/wpthemetestdata.wordpress.com\/?p=1745"},"modified":"2024-12-22T14:56:48","modified_gmt":"2024-12-22T14:56:48","slug":"block-cover","status":"publish","type":"post","link":"http:\/\/demo.themepiko.com\/kable\/default\/block-cover\/","title":{"rendered":"Block Cover photo element"},"content":{"rendered":"<div class=\"wp-block-cover alignleft is-light\"><span aria-hidden=\"true\" class=\"wp-block-cover__background has-background-dim\" style=\"background-color:#ccc8cb\"><\/span><img loading=\"lazy\" decoding=\"async\" width=\"1260\" height=\"700\" class=\"wp-block-cover__image-background wp-image-4002\" alt=\"\" src=\"http:\/\/demo.themepiko.com\/kable\/default\/wp-content\/uploads\/revslider\/h12_slider\/home12-3.jpg\" data-object-fit=\"cover\" srcset=\"http:\/\/demo.themepiko.com\/kable\/default\/wp-content\/uploads\/revslider\/h12_slider\/home12-3.jpg 1260w, http:\/\/demo.themepiko.com\/kable\/default\/wp-content\/uploads\/revslider\/h12_slider\/home12-3-650x361.jpg 650w, http:\/\/demo.themepiko.com\/kable\/default\/wp-content\/uploads\/revslider\/h12_slider\/home12-3-300x167.jpg 300w, http:\/\/demo.themepiko.com\/kable\/default\/wp-content\/uploads\/revslider\/h12_slider\/home12-3-768x427.jpg 768w, http:\/\/demo.themepiko.com\/kable\/default\/wp-content\/uploads\/revslider\/h12_slider\/home12-3-1024x569.jpg 1024w\" sizes=\"auto, (max-width: 1260px) 100vw, 1260px\" \/><div class=\"wp-block-cover__inner-container is-layout-flow wp-block-cover-is-layout-flow\"><p class=\"has-text-align-center has-large-font-size\">This is a left aligned cover block with a background image.<\/p><\/div><\/div><p>The cover block lets you add text on top of images or videos.<\/p><p>This blocktype has several alignment options, and you can also align or center the text inside the block.<\/p><p>The background image can be fixed and you can change its opacity and add an overlay color.<\/p><p>Make sure that the text wraps correctly over the image, and that text markup and alignments are working.<\/p><p>The next image should have a pink overlay color, the text should be bold and aligned to the left:<\/p><div class=\"wp-block-cover aligncenter is-light\"><span aria-hidden=\"true\" class=\"wp-block-cover__background has-background-dim\" style=\"background-color:#e8e7e7\"><\/span><img loading=\"lazy\" decoding=\"async\" width=\"1920\" height=\"601\" class=\"wp-block-cover__image-background wp-image-3738\" alt=\"\" src=\"http:\/\/demo.themepiko.com\/kable\/default\/wp-content\/uploads\/2019\/03\/contact-us.jpg\" data-object-fit=\"cover\" srcset=\"http:\/\/demo.themepiko.com\/kable\/default\/wp-content\/uploads\/2019\/03\/contact-us.jpg 1920w, http:\/\/demo.themepiko.com\/kable\/default\/wp-content\/uploads\/2019\/03\/contact-us-650x203.jpg 650w, http:\/\/demo.themepiko.com\/kable\/default\/wp-content\/uploads\/2019\/03\/contact-us-300x94.jpg 300w, http:\/\/demo.themepiko.com\/kable\/default\/wp-content\/uploads\/2019\/03\/contact-us-768x240.jpg 768w, http:\/\/demo.themepiko.com\/kable\/default\/wp-content\/uploads\/2019\/03\/contact-us-1024x321.jpg 1024w, http:\/\/demo.themepiko.com\/kable\/default\/wp-content\/uploads\/2019\/03\/contact-us-1568x491.jpg 1568w\" sizes=\"auto, (max-width: 1920px) 100vw, 1920px\" \/><div class=\"wp-block-cover__inner-container is-layout-flow wp-block-cover-is-layout-flow\"><p class=\"has-text-align-left has-large-font-size\"><strong>A center aligned cover image block, with a left aligned text.<\/strong><\/p><\/div><\/div><div class=\"wp-block-cover alignfull is-light has-parallax\"><span aria-hidden=\"true\" class=\"wp-block-cover__background has-background-dim-20 has-background-dim\"><\/span><div class=\"wp-block-cover__image-background wp-image-759 has-parallax\" style=\"background-position:50% 50%;background-image:url(http:\/\/themepiko.com\/test\/wp-content\/uploads\/2011\/07\/dsc04563-2.jpg)\"><\/div><div class=\"wp-block-cover__inner-container is-layout-flow wp-block-cover-is-layout-flow\"><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><\/div><\/div><p class=\"has-text-align-center\">Make sure that all the text is readable.<\/p><div class=\"wp-block-cover alignwide is-light\"><span aria-hidden=\"true\" class=\"wp-block-cover__background has-background-dim\" style=\"background-color:#c7f0cb\"><\/span><img loading=\"lazy\" decoding=\"async\" width=\"712\" height=\"421\" class=\"wp-block-cover__image-background wp-image-3562\" alt=\"\" src=\"http:\/\/demo.themepiko.com\/kable\/default\/wp-content\/uploads\/2019\/03\/h5_banner4.jpg\" data-object-fit=\"cover\" srcset=\"http:\/\/demo.themepiko.com\/kable\/default\/wp-content\/uploads\/2019\/03\/h5_banner4.jpg 712w, http:\/\/demo.themepiko.com\/kable\/default\/wp-content\/uploads\/2019\/03\/h5_banner4-650x384.jpg 650w, http:\/\/demo.themepiko.com\/kable\/default\/wp-content\/uploads\/2019\/03\/h5_banner4-300x177.jpg 300w\" sizes=\"auto, (max-width: 712px) 100vw, 712px\" \/><div class=\"wp-block-cover__inner-container is-layout-flow wp-block-cover-is-layout-flow\"><p class=\"has-text-align-center has-large-font-size\">Our last cover image block has a wide width.<\/p><\/div><\/div><div class=\"wp-block-cover alignwide is-light\"><span aria-hidden=\"true\" class=\"wp-block-cover__background has-background-dim\" style=\"background-color:#bfbbba\"><\/span><img loading=\"lazy\" decoding=\"async\" width=\"1260\" height=\"700\" class=\"wp-block-cover__image-background wp-image-3999\" alt=\"\" src=\"http:\/\/demo.themepiko.com\/kable\/default\/wp-content\/uploads\/revslider\/h12_slider\/Home-11.jpg\" data-object-fit=\"cover\" srcset=\"http:\/\/demo.themepiko.com\/kable\/default\/wp-content\/uploads\/revslider\/h12_slider\/Home-11.jpg 1260w, http:\/\/demo.themepiko.com\/kable\/default\/wp-content\/uploads\/revslider\/h12_slider\/Home-11-650x361.jpg 650w, http:\/\/demo.themepiko.com\/kable\/default\/wp-content\/uploads\/revslider\/h12_slider\/Home-11-300x167.jpg 300w, http:\/\/demo.themepiko.com\/kable\/default\/wp-content\/uploads\/revslider\/h12_slider\/Home-11-768x427.jpg 768w, http:\/\/demo.themepiko.com\/kable\/default\/wp-content\/uploads\/revslider\/h12_slider\/Home-11-1024x569.jpg 1024w\" sizes=\"auto, (max-width: 1260px) 100vw, 1260px\" \/><div class=\"wp-block-cover__inner-container is-layout-flow wp-block-cover-is-layout-flow\"><p class=\"has-text-align-center has-large-font-size\">This is a wide cover block with a video background.<\/p><\/div><\/div><p>The block below has no alignment, and the text is a link. Overlay colors must also work with video backgrounds.<\/p><p><\/p>","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":865,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[204],"tags":[],"class_list":["post-1784","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wellhead","entry","clearfix sub-post"],"_links":{"self":[{"href":"http:\/\/demo.themepiko.com\/kable\/default\/wp-json\/wp\/v2\/posts\/1784","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/demo.themepiko.com\/kable\/default\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/demo.themepiko.com\/kable\/default\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/demo.themepiko.com\/kable\/default\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/demo.themepiko.com\/kable\/default\/wp-json\/wp\/v2\/comments?post=1784"}],"version-history":[{"count":3,"href":"http:\/\/demo.themepiko.com\/kable\/default\/wp-json\/wp\/v2\/posts\/1784\/revisions"}],"predecessor-version":[{"id":4241,"href":"http:\/\/demo.themepiko.com\/kable\/default\/wp-json\/wp\/v2\/posts\/1784\/revisions\/4241"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/demo.themepiko.com\/kable\/default\/wp-json\/wp\/v2\/media\/865"}],"wp:attachment":[{"href":"http:\/\/demo.themepiko.com\/kable\/default\/wp-json\/wp\/v2\/media?parent=1784"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/demo.themepiko.com\/kable\/default\/wp-json\/wp\/v2\/categories?post=1784"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/demo.themepiko.com\/kable\/default\/wp-json\/wp\/v2\/tags?post=1784"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}