這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Rundiz Font Awesome

外掛說明

Use Font Awesome icons from your own host/server. Update the latest releases from GitHub.

Choose the major version and install the latest minor version. For example: Choose major version 6, and install the latest of 6.x.xx.
Currently supported for version 4, 5, 6.

This plugin did not use CDN (content delivery network). If you want to use CDN, please use official Font Awesome plugin instead.

You can dequeue duplicated Font Awesome handles from other plugins or themes to prevent conflict.

You can disable enqueue from this plugin in case you would like to do it manually.
To get asset files for manually enqueue, use this code.

if (function_exists('rdfontawesome_get_enqueue_files')) {
    $result = rdfontawesome_get_enqueue_files();
    if (isset($result['css']) && is_array($result['css'])) {
        $faVersion = ($result['faVersion'] ?? false);
        foreach ($result['css'] as $css) {
            wp_enqueue_style('myplugin_fontawesome', $css, [], $faVersion);
        }
        unset($css, $faVersion);
    }
}

To get URL base of the Font Awesome assets for use another files, use this code.

if (function_exists('rdfontawesome_get_public_url_base')) {
    echo rdfontawesome_get_public_url_base();
}

Font Awesome files are belong to https://fontawesome.com/

螢幕擷圖

  • Settings page.

常見問題集

Does this support Font Awesome Pro?

No, if you would like to use Pro, please use official Font Awesome plugin. The Font Awesome Pro couldn’t be download via GitHub.

Can I use it on my web hosting or server?

Yes, this plugin will not use CDN. So, you can use it on your own server or hosting. This is good for some restriction.

Can I use with my theme or other plugins?

Yes, you can use with any theme or plugins. There are options to dequeue the CSS & JS that was enqueued by other themes or plugins on the front pages. Just dequeue them to prevent duplicate (front pages only).

Does it supported short code?

No, this plugin does not supported any short code.

What kind of assets this plugin use?

This plugin use CSS and web fonts. It doesn’t use any JavaScript or SVG files.

What asset files this plugin will be download and installed?

This plugin download all necessary files that is ready to use such as CSS, fonts or including SVG for newer version of Font Awesome. The pre-processing such as Less, Sass files will not be use.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Rundiz Font Awesome〉的開發相關工作。

參與者

將〈Rundiz Font Awesome〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0.2

2022-02-18

  • Add Font Awesome version 6 supported.

1.0.1

2022-01-22

  • Fix check for downloaded zip file is not working on Linux.

1.0.0

2022-01-22

  • Initial release.