
內容簡介
這個外掛程式可用於進階自訂欄位外掛程式 (Advanced Custom Fields Plugin) 的附加元件。
幫助您為 ACF 自訂欄位 (包括可重複欄位和彈性內容) 新增類別。
刷子圖示對應到 ACF CSS ADD-ON 功能。您可以點擊此圖示來為欄位新增類別。
藉由使用空格來分隔,可以新增多個欄位類別。
也可以為選項頁面新增類別。
獨立章節
使用 get_field_classes(‘欄位名稱’) 來為簡單欄位(例如文字、網址、密碼、文字區塊)新增類別。
使用 get_sub_field_classes(‘欄位名稱’) 來為子欄位(例如可重複欄位、彈性內容)新增類別。
使用 get_field_classes(‘欄位名稱’, ‘option’) 來為選項頁面上的簡單欄位(例如文字、網址、密碼、文字區塊)新增類別。
使用 get_sub_field_classes(‘欄位名稱’, ‘option’) 來為選項頁面上的子欄位(例如可重複欄位、彈性內容)新增類別。
為了新增多個類別,請使用空格來分隔類別。
外掛標籤
開發者團隊
原文外掛簡介
This plugin can be used as an add-on to the Advanced Custom Fields Plugin.
Helps you add a class to any of the ACF Custom Fields, including repeater, flexible content.
The brush icon corresponds to the ACF CSS ADD-ON feature. You can click on this to add classes for the field.
Add multiple classes to the fields by seperating them with spaces.
Add class to options pages also.
Arbitrary section
Use get_field_classes(‘fieldname’) for simple fields eg. text, url, password, textarea
Use get_sub_field_classes(‘fieldname’) for sub-fields eg. repeater, flexible content
Use get_field_classes(‘fieldname’, ‘option’) for simple fields eg. text, url, password, textarea in options page
Use get_sub_field_classes(‘fieldname’, ‘option’) for sub-fields eg. repeater, flexible content in options page
To add multiple classes, seperate the classes with spaces.
