/so-widgets-icon-fap

Adds support for Font Awesome Pro to SiteOrigin Icon widget

Primary LanguagePHP

SiteOrigin Icon Font Awesome Pro

WIP: This plugin is non-functional. Has issues saving and rendering.

Adds Font Awesome Pro icon library to SiteOrigin Icon Widget.

This unofficial plugin is not created, sponsored, or maintained by SiteOrigin.


Requirements

Instructions

  1. Copy this project to your WP plugins folder.

  2. Copy .npmrc.example to .npmrc or add the included setting to your existing .npmrc file.

  3. Edit .npmrc to replace ${FONTAWESOME_NPM_AUTH_TOKEN} with your npm auth token or export FONTAWESOME_NPM_AUTH_TOKEN as an environment variable.

  4. Install dependencies

    $ yarn install --dev

    What's installed:

    • Installs Font Awesome 5 npm package
    • Copies all.css and webfonts/ from npm package to plugin directory
    • Adds SiteOrigin Icon-specific css to all.css
    • Prepares metadata/icons.yml to be passed to siteorigin_widgets_icon_families filter hook
  5. Enable plugin in WP

To Do:

  • Get icons to render outside Icon form
  • Remove free Font Awesome from Icon form
  • Add manual install instructions to README.md
  • Resolve conflicts for if FA is already installed