[WordPress] 外掛分享: Responsive Picture Block

WordPress 外掛 Responsive Picture Block 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Responsive Picture Block」是 2025-09-29 上架。
  • 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
  • 上一次更新是 2026-02-17,距離現在已有 9 天。
  • 外掛最低要求 WordPress 6.3 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 7.4 以上。
  • 有 1 人給過評分。
  • 論壇上目前有 1 個提問,問題解答率 100% ,不低,算是個很有心解決問題的開發者團隊了!

外掛協作開發者

coreessentials |

外掛標籤

gutenberg | block-editor | art-direction | picture element | responsive images |

內容簡介

總結:Core Essentials – Responsive Picture Block 將多個標準的 Image blocks 轉換為一個語義化的前端 <picture> HTML 元素。這是為了藝術方向而建立的:在不同斷點(例如緊湊的手機裁剪、較寬的桌面裁剪或 AVIF/WebP 資源)選擇不同的裁剪、構圖或格式。

問題與答案:
1. 為什麼使用 <picture> 有重要性?
- 回答:當您需要在不同視口寬度下享有不同內容(裁剪/比例/構圖)時,<img srcset> 雖然非常適合選擇正確的相同圖像解析度,但如果需要藝術指導,那麼 <picture> 通過讓您透過 <source media="..."> 交換整個來源來實現這一點。

2. 為什麼使用 Responsive Picture Block 的的編輯人員使用體驗很好?
- 回答:編者看到單一的“ Responsive Picture(Block)”包裹器,然後在每個斷點插入一個圖像。該外掛會從桌面圖像複製鏈接/說明。每個圖像的設計控件(長寬比、對象適配、寬度/高度)都會受到尊重。該區塊的預覽展示原生的桌面/平板電腦/手機工具列。

原文外掛簡介

Core Essentials – Responsive Picture Block turns several standard Image blocks into one semantic, front-end HTML element. It’s built for art direction: choose different crops, compositions, or formats for different breakpoints (e.g., a tight mobile crop, a wider desktop crop, or an AVIF/WebP source).
Why this matters:

vs
srcset is great for picking the right resolution of the same image. But when you need different content (crop/ratio/composition) at different viewport widths, you need art direction — that’s exactly what does by letting you swap entire sources via.

Editor-first UX
Authors see a single “Responsive Picture (Block)” wrapper, then insert one Image per breakpoint. The plugin mirrors the link /caption from the Desktop image. Per-image design controls (aspect ratio, object-fit, width/height) are respected. The block’s preview shows the native Desktop / Tablet / Mobile toolbar:

Desktop preview ⇒ show all child images
Tablet preview ⇒ show Tablet, else Desktop, else Mobile
Mobile preview ⇒ show Mobile, else Tablet, else Desktop

Perfect source ordering
Custom media queries are auto-sorted so the correctwins (most specific first). Works with max-width, min-width, and range queries.

Key Features

Wraps multiple core Image blocks into a single semantic Pick Desktop / Tablet / Mobile / Custom images (true art direction)
Override media per Tablet/Mobile/Custom (e.g., (max-width: 1200px))
Optional sizes override per source (advanced bandwidth tuning)
Allows width, height, aspect-ratio, object-fit per breakpoint
Uses link + caption from the Desktop (fallback) image
Editor preview follows WordPress’ device switcher (Desktop/Tablet/Mobile)
Prevents layout overflow; picture wrapper is fully responsive
Works with standard WP image sizes and responsive srcset
Lightweight, no front-end JS — pure HTML/CSS on the front end

Why (Art Direction 101)
When your layout needs different imagery across breakpoints (e.g., a vertical crop on phones and a wide landscape on desktops), you’re doing art direction. The element enables this by letting the browser choose an entire source based on media conditions (and even file type, like AVIF/WebP), not just a different width of the same file. The result is better design control and faster pages because each device downloads only the most appropriate asset for its layout saving you bandwidth as well as having compositions control.
Use Cases

Hero banners with different crops for mobile vs desktop
Product images where the subject framing changes on small screens
Editorial layouts that require portrait vs landscape compositions
File format switching (e.g., AVIF/WebP with PNG/JPEG fallback)

Usage

Insert the Responsive Picture (Block) block.
Add Image blocks inside it for: Desktop (fallback), Tablet, Mobile, and/or Custom.
Select each Image and open the Responsive: Breakpoint panel:

Viewport: Desktop / Tablet / Mobile / Custom
Override media query (Tablet/Mobile): optional (e.g., (max-width: 1200px))
Custom media query: required when using the “Custom” viewport

(Optional) Open Advanced: Sizes override to set a custom sizes="" for that source.
Use the editor’s Desktop / Tablet / Mobile preview to check the effective image per breakpoint.
Publish. The front end renders a single with perfectly orderedtags and a fallback .

Block Details

Block name: ce/responsive-picture
Children: one or more core/image blocks

Front-end HTML output:

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Responsive Picture Block」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0.0 | 1.1.0 | trunk |

延伸相關外掛(你可能也想知道)

  • Classic Editor 》Classic Editor 是由 WordPress 團隊維護的官方外掛程式,可還原之前(也就是「經典」)的 WordPress 編輯器和「編輯文章」畫面,使使用者可以使用延伸這個畫...。
  • Advanced Editor Tools 》高級編輯工具(以前稱為 TinyMCE Advanced)引入了一個「經典段落」區塊,供區塊編輯器(Gutenberg)使用。, 如果您還沒有準備好切換到區塊編輯器,或者有插...。
  • Classic Widgets 》Classic Widgets 是由 WordPress 團隊維護的官方外掛,能夠恢復先前(即「經典」)的 WordPress widgets 設定畫面。該外掛將於 2024 年或必要時保持支援和維...。
  • Starter Templates – AI-Powered Templates for Elementor & Gutenberg 》免費模板,支援 Elementor、Beaver Builder 和 Block Editor, 使用 Starter Templates 外掛,只需數分鐘即可建立專業且完美的網站。此外掛為使用者提供超過 2...。
  • Spectra Gutenberg Blocks – Website Builder for the Block Editor 》a.com/tutorials/?utm_source=wp-repo&utm_medium=link&utm_campaign=readme" rel="nofollow ugc">Spectra tutorials, you can easily learn how to ...。
  • Kadence Blocks — Page Builder Toolkit for Gutenberg Editor 》Kadence Blocks 是一個 WordPress 外掛,它附加自訂區塊和選項,擴展了 Gutenberg 編輯功能,使您能夠輕鬆創建美麗的網站,而不需要任何程式編寫。Kadence Bl...。
  • Disable Gutenberg 》此外掛可禁用新的 Gutenberg 編輯器 (也稱為區塊編輯器),並以經典編輯器取代它。你可以完全禁用 Gutenberg,或從文章、頁面、角色、文章類型和主題模板中有...。
  • Extendify 》Extendify 是一個網站設計和製作工具平台,提供豐富的圖案和全頁面佈局,可用於 Gutenberg 區塊編輯器,幫助人們建立美麗的 WordPress 網站。, 使用 Extendif...。
  • Otter Blocks – Gutenberg Blocks, Page Builder for Gutenberg Editor & FSE 》Otter 是一款 Gutenberg Blocks 頁面建構外掛,可為 WordPress Block Editor(又稱 Gutenberg)添加額外功能,讓您享受更好的頁面建構體驗,而無需使用傳統的...。
  • Page Builder Gutenberg Blocks – CoBlocks 》, 注意:對於已受 CoBlocks 3.0.0 版本影響的使用者,請查看我們在 WordPress.org 支援論壇文章,如果您需要支援,請建立新的主題帖。, , CoBlocks 是新版 Gu...。
  • AI Powered Starter Templates by Kadence WP 》用三個滑鼠點擊建立一個美觀的「效能優化」網站, 在幾分鐘內創建和自定義專業設計的網站。, Kadence Starter Templates 為您提供使用 WordPress 區塊構建器的...。
  • GenerateBlocks 》將不同的功能整合至編輯器,但並不會因為過多的一維方塊造成內容過於臃腫。使用 GenerateBlocks,您只需深入學習少量的方塊,即可用於創建任何內容。, Genera...。
  • Gutenberg Essential Blocks – Page Builder for Gutenberg Blocks & Patterns 》使用 Essential Blocks for Gutenberg,即可實現您的創意視覺效果,這是適用於 WordPress 的最終區塊庫!, 使用我們易於使用的區塊,增強您使用 Gutenberg 的...。
  • VK Blocks 》這是一個擴充 Gutenberg 模塊的外掛。, [ 模塊 ], , 成員, 外框, 警示, 常問問題, 氣球, 流, 按鈕, 公關模塊, 公關內容, 邊框盒, 標題(帶副標題), 響應間距...。
  • Stackable – Page Builder Gutenberg Blocks 》終極與古鐸版衣搭檔, Stackable 是您一直在等待的終極可靠古鐸版衣搭檔。使用堅強、輕便的自訂區塊、現成設計、UI套件、全域設定和高級自訂選項建立動態網站...。

文章
Filter
Apply Filters
Mastodon