[WordPress] 外掛分享: HTML Attributes Customizer for Blocks

首頁外掛目錄 › HTML Attributes Customizer for Blocks
全新外掛
安裝啟用
尚無評分
12 天前
最後更新
問題解決
WordPress 6.0+ PHP 7.4+ v1.0.2 上架:2026-05-21

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.2) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「HTML Attributes Customizer for Blocks」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

HTML Attributes Customizer for Blocks adds an HTML attributes panel in the block sidebar. Enter one attribute per line as name="value" (double quotes), or a boolean attribute as a single name (for example inert).
Attributes are stored on the block as JSON objects: htmlbacAttributes and htmlbacInnerAttributes (for example {"fetchpriority":"high","data-nolazy":"0"}). Boolean flags use true.
Merging: Duplicate names on multiple lines are combined. Values merge with spaces (semicolons for style). class merges with the block’s existing classes instead of replacing them.
Variables: Use tokens such as {{post.title}} or {{user.auth_status}} inside quoted values. They are replaced when the block renders on the front end.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon