[WordPress] 外掛分享: Disable Auto-Sizes

前言介紹

  • 這款 WordPress 外掛「Disable Auto-Sizes」是 2024-11-26 上架。
  • 目前有 30 個安裝啟用數。
  • 上一次更新是 2024-11-27,距離現在已有 158 天。
  • 外掛最低要求 WordPress 6.7.1 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 7.2.24 以上。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

mukesh27 |

外掛標籤

auto-sizes | performance | sizes attribute | responsive images |

內容簡介

總結:「Disable Auto-Sizes」外掛阻止 WordPress 在圖片的大小屬性中添加自動關鍵字 auto,確保完全控制大小屬性,對於進階自定義或除錯非常有用。

HTML 編排問題與答案:



  • 問題:「Disable Auto-Sizes」外掛的主要功能是什麼?

    答案:阻止 WordPress 在圖片的大小屬性中添加 auto 關鍵字。


  • 問題:這個外掛的特色有哪些?

    答案:

    • 停止對 <img> 標籤的大小屬性中自動添加 auto 值。

    • 輕量且易於使用。

    • 對於開發人員和進階用戶管理響應式圖像行為非常有用。



原文外掛簡介

The “Disable Auto-Sizes” plugin prevents WordPress from adding the auto keyword to the sizes attribute for images. This ensures full control over the sizes attribute and is useful for advanced customization or debugging.
Features

Disables the automatic addition of the auto value in the sizes attribute for tags.
Lightweight and easy to use.
Useful for developers and advanced users managing responsive image behaviors.

各版本下載點

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

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


1.0 | trunk |

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

  • Enhanced Responsive Images 》這個外掛程式實現了將 sizes="auto" 加入到懶加載圖片的 HTML 規格。, 相關背景資訊請參考:https://github.com/whatwg/html/issues/4654。, , 問...。

文章
Filter
Apply Filters
Mastodon