[WordPress] 外掛分享: Empty Alt Image Container Swap

WordPress 外掛 Empty Alt Image Container Swap 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Empty Alt Image Container Swap」是 2024-07-25 上架。
  • 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
  • 上一次更新是 2024-07-29,距離現在已有 279 天。
  • 外掛最低要求 WordPress 5.0 以上版本才可以安裝。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

akari_doi |

外掛標籤

div | figure | images | Alt Text | accessibility |

內容簡介

### 摘要:
這個外掛增強了WordPress區塊編輯器中圖像區塊的無障礙性,當圖像的alt屬性為空時,將<figure>標籤轉換為<div>標籤。
純粹作為裝飾用途且缺乏alt屬性的圖像不會直接幫助理解內容,因此,將它們包裹在<figure>元素內並不合適。
通過將缺少alt文本的圖像的

標籤替換為
標籤,這個外掛確保了正確的HTML語義。
元素是沒有隱含含意的通用容器,適用於呈現沒有相關描述的圖像。


  • 問題:這個外掛如何增強WordPress區塊編輯器中圖像區塊的無障礙性?

  • 答案:將圖像的alt屬性空的<figure>標籤轉換為<div>標籤。
  • 問題:為什麼將具有純粹裝飾性且沒有alt屬性的圖像包裹在<figure>元素內不適當?

  • 答案:因為它們不直接貢獻於理解內容。
  • 問題:為什麼這個外掛將缺少alt文本的圖像的<figure>標籤替換為<div>標籤?

  • 答案:確保了正確的HTML語義,使得適合呈現沒有相關描述的圖像。

原文外掛簡介

This plugin enhances the accessibility of image blocks in the WordPress block editor by converting the wrapping

tags to
tags when the image has an empty alt attribute. Additionally, it hides the caption for images with empty alt text on the frontend.
Key features:
– Converts
tags to
tags for images with empty alt text
– Hides captions for images with empty alt text on the frontend (output a warning to the editor)
– Works dynamically without modifying stored content
Images that are purely decorative and lack an alt attribute do not contribute directly to the understanding of the content, and therefore, wrapping them in a
element is not appropriate.
By replacing
tags with
tags for images missing alt text, this plugin ensures proper HTML semantics.
elements are generic containers without implicit meaning, making them suitable for presenting images without associated descriptions.

各版本下載點

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

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


1.0 | 1.0.1 | 1.0.2 | 1.0.3 | 1.0.4 | 1.1.0 | trunk |

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

  • Hammy 》介紹, Hammy 可以對正常的內容圖片(僅限於文章和頁面,而不是自定義文章類型)進行重新調整大小,生成多個不同尺寸的圖片。當使用者訪問網站時,自動提供最...。
  • Key Figures 》主要功能, 此外掛可以在你的內容中產生關鍵數字區塊。, 它是完全可自訂的,允許調整許多設定:, , 每個元素的大小, 文字大小和對齊方式, 位置, 動畫(例如計...。
  • CFF Area and Perimeter Operations 》該外掛實現了“面積和周長”操作模塊,可從“計算字段表單”插件的方程式中使用。 “計算字段表單”插件是一個具有很大潛力的表單生成器,其“計算”控件是其巨大優勢...。

{{{data.formatted.post_title}}}
By {{data.post_author}} 0 ) { #>
{{{data.formatted.post_content}}}
{{{data.formatted.post_title}}}
{{data.formatted.sliced_content}}
文章
Filter
Apply Filters
Mastodon