
內容簡介
HTML Attributes Customizer for Blocks 外掛可讓使用者在區塊側邊欄中輕鬆添加自訂 HTML 屬性,提升區塊的靈活性與功能性,適合需要進一步調整區塊屬性的開發者與設計師。
【主要功能】
• 在區塊側邊欄添加 HTML 屬性面板
• 支援以 JSON 物件格式儲存屬性
• 支援使用變數如 {{post.title}}
• 合併重複的屬性名稱
• 允許布林屬性簡單輸入
外掛標籤
開發者團隊
② 後台搜尋「HTML Attributes Customizer for Blocks」→ 直接安裝(推薦)
原文外掛簡介
Try in Playground — opens WordPress Playground with this plugin installed and lands on the Add Post editor.
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.
