{"id":89,"date":"2025-02-23T00:40:18","date_gmt":"2025-02-23T00:40:18","guid":{"rendered":"https:\/\/notes.zj1963.com\/?p=89"},"modified":"2025-02-23T00:40:18","modified_gmt":"2025-02-23T00:40:18","slug":"%e5%8f%af%e4%bb%a5%e5%8a%a0%e8%83%8c%e6%99%af%e5%9b%be%e5%83%8f%e7%9a%84%e5%9d%97","status":"publish","type":"post","link":"https:\/\/notes.zj1963.com\/?p=89","title":{"rendered":"\u53ef\u4ee5\u52a0\u80cc\u666f\u56fe\u50cf\u7684\u5757"},"content":{"rendered":"\n<p><strong>Blocks That Support Background Images in WordPress Gutenberg<\/strong><\/p>\n\n\n\n<p>In the&nbsp;<strong>WordPress Block Editor (Gutenberg)<\/strong>, some blocks allow you to set a&nbsp;<strong>background image<\/strong>&nbsp;directly. Here are the best options:<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>1\ufe0f\u20e3 Cover Block (Best for Full-Width Backgrounds)<\/strong><\/h2>\n\n\n\n<p>\u2705&nbsp;<strong>Supports:<\/strong>&nbsp;Background images &amp; videos<\/p>\n\n\n\n<p>\u2705&nbsp;<strong>Best for:<\/strong>&nbsp;Hero sections, headers, call-to-action areas<\/p>\n\n\n\n<p><strong>\ud83d\udd39 How to Use:<\/strong><\/p>\n\n\n\n<p>1.&nbsp;<strong>Add a \u201cCover\u201d block<\/strong>&nbsp;(+&nbsp;\u2192 Search for \u201cCover\u201d).<\/p>\n\n\n\n<p>2.&nbsp;Click&nbsp;<strong>\u201cUpload\u201d<\/strong>&nbsp;or choose an image from the&nbsp;<strong>Media Library<\/strong>.<\/p>\n\n\n\n<p>3.&nbsp;Adjust the&nbsp;<strong>opacity, overlay, and text color<\/strong>&nbsp;for better readability.<\/p>\n\n\n\n<p>4.&nbsp;Add any content inside it (text, buttons, etc.).<\/p>\n\n\n\n<p>5.&nbsp;<strong>Resize<\/strong>&nbsp;to fit your layout.<\/p>\n\n\n\n<p>\ud83d\udccc&nbsp;<strong>Tip:<\/strong>&nbsp;You can also use a&nbsp;<strong>video background<\/strong>&nbsp;with the Cover block! \ud83c\udfa5<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>2\ufe0f\u20e3 Group Block (For Multiple Blocks with Background)<\/strong><\/h2>\n\n\n\n<p>\u2705&nbsp;<strong>Supports:<\/strong>&nbsp;Background images &amp; solid colors<\/p>\n\n\n\n<p>\u2705&nbsp;<strong>Best for:<\/strong>&nbsp;Wrapping multiple blocks inside one background<\/p>\n\n\n\n<p><strong>\ud83d\udd39 How to Use:<\/strong><\/p>\n\n\n\n<p>1.&nbsp;<strong>Add a \u201cGroup\u201d block<\/strong>&nbsp;(+&nbsp;\u2192 Search for \u201cGroup\u201d).<\/p>\n\n\n\n<p>2.&nbsp;Click on the block and go to&nbsp;<strong>Block Settings \u2192 Styles<\/strong>.<\/p>\n\n\n\n<p>3.&nbsp;Select&nbsp;<strong>Background \u2192 Image<\/strong>&nbsp;and upload\/select an image.<\/p>\n\n\n\n<p>4.&nbsp;Add blocks inside it (paragraphs, buttons, headings, etc.).<\/p>\n\n\n\n<p>\ud83d\udccc&nbsp;<strong>Tip:<\/strong>&nbsp;Works well for&nbsp;<strong>sections with multiple blocks<\/strong>&nbsp;sharing a background.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>3\ufe0f\u20e3 Columns Block (Background for Multiple Columns)<\/strong><\/h2>\n\n\n\n<p>\u2705&nbsp;<strong>Supports:<\/strong>&nbsp;Background images via the&nbsp;<strong>Group Block<\/strong><\/p>\n\n\n\n<p>\u2705&nbsp;<strong>Best for:<\/strong>&nbsp;Side-by-side layouts with different content sections<\/p>\n\n\n\n<p><strong>\ud83d\udd39 How to Use:<\/strong><\/p>\n\n\n\n<p>1.&nbsp;Add a&nbsp;<strong>Columns<\/strong>&nbsp;block.<\/p>\n\n\n\n<p>2.&nbsp;Wrap it inside a&nbsp;<strong>Group block<\/strong>.<\/p>\n\n\n\n<p>3.&nbsp;Set a&nbsp;<strong>background image<\/strong>&nbsp;on the Group block.<\/p>\n\n\n\n<p>4.&nbsp;Add content inside each column.<\/p>\n\n\n\n<p>\ud83d\udccc&nbsp;<strong>Tip:<\/strong>&nbsp;Great for&nbsp;<strong>grid layouts<\/strong>&nbsp;with a background.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>4\ufe0f\u20e3 Media &amp; Text Block (Image on One Side, Text on Another)<\/strong><\/h2>\n\n\n\n<p>\u2705&nbsp;<strong>Supports:<\/strong>&nbsp;Background images on the media side<\/p>\n\n\n\n<p>\u2705&nbsp;<strong>Best for:<\/strong>&nbsp;Content sections with&nbsp;<strong>text + image side-by-side<\/strong><\/p>\n\n\n\n<p><strong>\ud83d\udd39 How to Use:<\/strong><\/p>\n\n\n\n<p>1.&nbsp;Add a&nbsp;<strong>Media &amp; Text<\/strong>&nbsp;block.<\/p>\n\n\n\n<p>2.&nbsp;Upload an image on the left (or right).<\/p>\n\n\n\n<p>3.&nbsp;Add text on the other side.<\/p>\n\n\n\n<p>\ud83d\udccc&nbsp;<strong>Tip:<\/strong>&nbsp;Ideal for&nbsp;<strong>feature sections<\/strong>&nbsp;or service descriptions.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>5\ufe0f\u20e3 Buttons Block (Add Background via Group Block)<\/strong><\/h2>\n\n\n\n<p>\u2705&nbsp;<strong>Supports:<\/strong>&nbsp;Background images if wrapped inside a&nbsp;<strong>Group Block<\/strong><\/p>\n\n\n\n<p>\u2705&nbsp;<strong>Best for:<\/strong>&nbsp;Call-to-action (CTA) sections<\/p>\n\n\n\n<p><strong>\ud83d\udd39 How to Use:<\/strong><\/p>\n\n\n\n<p>1.&nbsp;Add a&nbsp;<strong>Group block<\/strong>&nbsp;\u2192 Set&nbsp;<strong>background image<\/strong>.<\/p>\n\n\n\n<p>2.&nbsp;Inside, add a&nbsp;<strong>Buttons block<\/strong>&nbsp;with a CTA (e.g., \u201cLearn More\u201d).<\/p>\n\n\n\n<p>\ud83d\udccc&nbsp;<strong>Tip:<\/strong>&nbsp;Great for&nbsp;<strong>stylish call-to-action sections<\/strong>.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>\ud83c\udfaf Best Option for You?<\/strong><\/p>\n\n\n\n<p>\u2022&nbsp;\u2705&nbsp;<strong>Full-page background?<\/strong>&nbsp;\u2192&nbsp;<strong>Cover Block<\/strong><\/p>\n\n\n\n<p>\u2022&nbsp;\u2705&nbsp;<strong>Section with multiple blocks?<\/strong>&nbsp;\u2192&nbsp;<strong>Group Block<\/strong><\/p>\n\n\n\n<p>\u2022&nbsp;\u2705&nbsp;<strong>Grid layout with background?<\/strong>&nbsp;\u2192&nbsp;<strong>Columns Block<\/strong><\/p>\n\n\n\n<p>\u2022&nbsp;\u2705&nbsp;<strong>Side-by-side layout?<\/strong>&nbsp;\u2192&nbsp;<strong>Media &amp; Text Block<\/strong><\/p>\n\n\n\n<p>\u2022&nbsp;\u2705&nbsp;<strong>CTA with a background?<\/strong>&nbsp;\u2192&nbsp;<strong>Group + Buttons Block<\/strong><\/p>\n\n\n\n<p>Need help with styling or responsiveness? \ud83d\ude0a<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Blocks That Support Background Images in WordPress Gutenberg In the&nbsp;WordPress Block Editor (Gutenberg), some blocks allow you to set a&nbsp;background image&nbsp;directly. Here are the best options: 1\ufe0f\u20e3 Cover Block (Best for Full-Width Backgrounds) \u2705&nbsp;Supports:&nbsp;Background images &amp; videos \u2705&nbsp;Best for:&nbsp;Hero sections, headers, call-to-action areas \ud83d\udd39 How to Use: 1.&nbsp;Add a \u201cCover\u201d block&nbsp;(+&nbsp;\u2192 Search for \u201cCover\u201d). 2.&nbsp;Click&nbsp;\u201cUpload\u201d&nbsp;or [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-89","post","type-post","status-publish","format-standard","hentry","category-wordpress"],"_links":{"self":[{"href":"https:\/\/notes.zj1963.com\/index.php?rest_route=\/wp\/v2\/posts\/89","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/notes.zj1963.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/notes.zj1963.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/notes.zj1963.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/notes.zj1963.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=89"}],"version-history":[{"count":1,"href":"https:\/\/notes.zj1963.com\/index.php?rest_route=\/wp\/v2\/posts\/89\/revisions"}],"predecessor-version":[{"id":90,"href":"https:\/\/notes.zj1963.com\/index.php?rest_route=\/wp\/v2\/posts\/89\/revisions\/90"}],"wp:attachment":[{"href":"https:\/\/notes.zj1963.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=89"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/notes.zj1963.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=89"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/notes.zj1963.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=89"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}