
內容簡介
這個 WordPress 簡碼外掛可以生成 Font Awesome 圖示庫的內部 HTML。
您可以使用 Font Awesome 6 支援的任何圖示代碼。
關於此外掛的一些注意事項:
您可以選擇將您的 Font Awesome 6 文件放在本地主機(預設)。
您可以選擇使用 Font Awesome CDN。
您可以選擇指定自定義 URL 來設定 Font Awesome 文件。
如果您已經在其他地方包含了 Font Awesome 資源,也可以選擇禁用它。
此外掛可能會在您的 PHP 錯誤記錄中創建條目(如果啟用)。
此外掛不包含任何追蹤程式碼,也不處理或收集有關訪問者的任何信息。
已測試支援 WordPress 5.5-5.9。
已測試支援 PHP 7.2 和 PHP 7.4。
設定
決定是否使用包含的 Font Awesome 資源,此時的版本為 5.15.2。如果您想使用其他版本,您可以替換已包含的資源,使用另一個 URL 來設定 CSS 和網頁字型資源,或者指定 Font Awesome CDN kit 的 URL。
使用方式
此外掛提供了一個簡碼:
[scfa][/scfa]
一般格式
這是為了簡化簡碼而設計的快速參考。完整的 Font Awesome 類別清單請見 fontawesome.com。某些圖示樣式可能只能在購買 Pro 授權後才能使用。如果方便,您可以在 class=”” 參數中指定相關類別。
生成包含圖示和預設樣式的 <i> 元素:
[scfa icon="address-book"][/scfa]
生成包含指定樣式和圖示的 <i> 元素:
[scfa icon="far address-book"][/scfa]
生成包含指定樣式、圖示和大小的 <i> 元素:
[scfa icon="far address-book" size="5x"][/scfa]
在 SCFA 外掛的設定畫面中,還有更多範例。
致謝
Shortcodes for Font Awesome Plugin 是由 Joaquim Homrighausen 撰寫的,當時他正將咖啡因轉換為程式碼。
Shortcodes for Font Awesome 給付了由位於瑞典斯德哥爾摩的 WebbPlatsen i Sverige AB 贊助提供。
此外掛也可以從 code.webbplatsen.net 和 GitHub 下載
Font Awesome
請保持安全!
外掛標籤
開發者團隊
原文外掛簡介
This WordPress shortcode plugin generates inline HTML for the Font Awesome icon libray.
You can use any icon code supported by Font Awesome 7.
A few notes about this plugin:
You may choose to host your Font Awesome 7 files locally (default)
You may choose to use the Font Awesome CDN
You may choose to specify a custom URL for your Font Awesome files
You may choose to disable Font Awesome assets if you include them elsewhere
This plugin may create entries in your PHP error log (if active)
This plugin contains no tracking code and does not process or collect any information about the visitor
Tested with WordPress 5.5-6.8
Tested with PHP 7.2, 7.4 and PHP 8.1
See css/fontawesome/LICENSE.TXT for Font Awesome licensing details
Configuration
Decide if you want to use the included Font Awesome assets, they are the time of this writing at version 7.0.1. If you want to use another version, you can replace the included assets, use another URL for the CSS and webfont assets, or specify a Font Awesome CDN kit URL.
Usage
There is one shortcode available with this plugin:
[scfa][/scfa]
General format
This is intended as a quick reference for the shortcode. For a complete list of Font Awesome classes, please see fontawesome.com. Some icon styles may only be available with a Pro license. You can (obviously) specify everything class related in the class=”” parameter if that is more convenient for you.
Generate element with icon and default (icon) style:
[scfa icon="address-book"][/scfa]
Generate element with the specified style and icon:
[scfa icon="far address-book"][/scfa]
Generate element with the specified style and icon and size:
[scfa icon="far address-book" size="5x"][/scfa]
There are more examples in the SCFA plugin settings screen.
Credits
The Shortcodes for Font Awesome Plugin was written by Joaquim Homrighausen while converting caffeine into code.
Shortcodes for Font Awesome is sponsored by WebbPlatsen i Sverige AB, Sweden.
This plugin can also be downloaded from code.webbplatsen.net and GitHub
Font Awesome
Stay safe!
