內容簡介
ACF icon 外掛會新增一個欄位到 ACF 中,讓使用者可以從快顯視窗中選擇圖示。
它可以與 ACF Repeater 欄位一起使用。
它支援字型圖示和 SVG 圖示。您可以選擇在欄位中回傳
* CSS 類別
* SVG URL 片段
* SVG 檔案路徑
* SVG 原始碼(SVG 標記)
截至版本 0.1.3,您無法限制圖示或新增圖示提供者。
如果您正在使用 ACF functions the_field() 中的 CSS 類別回傳格式,您需要加入所需的 CSS。
請使用 ACFIcon::get_css_handle(get_the_field(‘your-icon-field-id’)) 來檢索所選圖示的正確 CSS handle。
支援的圖示包括 Font Awesome 5 Free、Ionicons 和 Elementor Icons。
外掛標籤
開發者團隊
原文外掛簡介
The ACF icon plugin adds a new field to ACF that enables users to select an icon from a popup.
It works with ACF Repeater fields.
It supports both font icons and SVG icons. You can select if the field should return
* CSS class
* SVG url fragment
* SVG file path
* SVG raw (the SVG markup)
You cannot limit to certain icons or add new icon providers as of writing which is version 0.1.3.
If you are using ACF functions the_field() with CSS class return format you need to enqueue the required CSS.
Use ACFIcon::get_css_handle(get_the_field(‘your-icon-field-id’)) to retrieve the correct CSS handle for the selected icon.
Supported icons are Font Awesome 5 Free, Ionicons and Elementor Icons.
