plugin-icon

Empty Alt Image Container Swap

제작자: Akari Doi·
This plugin improves accessibility by converting figure tags to div tags for image blocks with missing alt text and hides captions for these images.
버전
1.1.0
최근 업데이트일
Jul 29, 2024
Empty Alt Image Container Swap

This plugin enhances the accessibility of image blocks in the WordPress block editor by converting the wrapping <figure> tags to <div> 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 <figure> tags to <div> 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 <figure> element is not appropriate. By replacing <figure> tags with <div> tags for images missing alt text, this plugin ensures proper HTML semantics. <div> elements are generic containers without implicit meaning, making them suitable for presenting images without associated descriptions.

무료Business 요금제에서
설치하면 WordPress.com 서비스 약관서드파티 플러그인 약관에 동의하게 됩니다.
테스트된 버전
WordPress 6.6.4
이 플러그인은 다운로드할 수 있으며 에서 사용할 수 있습니다.