Font Awesome for OctoberCMS
This is the unofficial integration for Font Awesome for OctoberCMS. We've worked together with the Font Awesome team to ensure that this plugin complies with the Font Awesome standards.
If you have any questions, feature requests or problems with the plugin, you can contact us by sending a mail to support@helder.work. It's the fastest and most reliable way to contact us.
Features
Setup
- Ready in 5 minutes with the setup in the settings panel.
- Support for Font Awesome 5 and 6 by using a Font Awesome Kit.
- Use Font Awesome for free with the Free license or access all icons with a Pro license.
- Choose between an OctoberCMS UI theme or the Font Awesome theme for search results.
- Choose what icon sets are available when searching.
Searching
- Search icons with Font Awesome Search, just like on the Font Awesome website.
- Filter between available icon styles for easier icon picking.
Extend the backend
- A custom form widget to add icons to your existing plugins.
- Insert icons in the rich editor with the toolbar widget.
- Add <i> tags with Font Awesome classes in the Markdown editor.
- Use Font Awesome Icons in your plugins and backend forms.
Hold up! You're not using Font Awesome yet?
The plugin works with both Font Awesome Free and Pro, but an account is required to use this plugin. You can create an account for free at fontawesome.com/plans and access 2.050 icons or subscribe to a Pro plan and access 33.000+ icons and 10+ styles.
Why is this a paid plugin?
At Helder we want to commit to reliable, high quality products. By making this a paid plugin we can ensure long time support for this plugin, instead of a plugin that's unmaintained after a few years.
We use all funds from this plugin to maintain and expand this plugin and create more plugins for OctoberCMS in the future. When purchasing the plugin, 30% of the purchase price is send to OctoberCMS.
About Helder
Helder is a Dutch startup that aims to improve the User Experience for customers and their clients by building high quality designs and plugins for websites and e-commerce. With more than 15 plugins, we've created a layer on top of OctoberCMS for a fast and reliable experience. The plugins range from a visual page builder to a complete e-commerce solution. You can check out our work at helder.work.
Getting Started
After installing the plugin, you can start in a few minutes by following the steps in this quick-guide. After the setup, the Font Awesome script will be loaded automatically in both your front- and backend.
- You can get your API key from your Account Page or register your account at fontawesome.com/plans.
- Ensure that you choose
Read Kits data
andPro icons and metadata
when creating an API key, otherwise the plugin can't function properly. - Go to Settings > Font Awesome > Setup.
- Paste your API key and submit it.
- Choose the kit that you want to use, we'll retrieve the details after you submit your choice.
- That's it! You can start using Font Awesome on your website now.
Loading Font Awesome in the frontend
Make sure that you include the {% scripts %}
tag in your layouts. The Font Awesome script will be rendered over there.
Customizing the Font Awesome Plugin
Most of your customisations are done in the Kit settings on the Font Awesome website. You can customize some aspects in the plugin settings panel:
Icon styles
Choose what icon styles are available for your users. These will appear in the settings menu, based on the available styles in your kit.
Search appearance
You can choose between an System
style, which fits the backend style or the Font Awesome
style, which mimics the Font Awesome search page.
Using the form widget inside your forms
The Font Awesome plugin comes with a handy form field to search for icons and include them in your forms.
Simply add a new field to your form with the icon-picker
type:
icon: label: Icon type: icon-picker
Saved values include the Font Awesome style and name. The only thing you have to add is a some HTML when rendering the icon:
<i class="{{ icon.class }}"></i>
You can also nest the icons inside other elements, for example in a title:
<h1> <i class="{{ icon.class }}"></i> Welcome to my website </h1>
The icon
variable consists of 3 properties:
- class the complete classname:
fal fa-checkmark
- icon the icon name:
checkmark
- style the Font Awesome style:
fal
This enables you to customize the icons style easier, for example when you have an active menu item:
<a href="{{ url }}" class="button"> <i class="{{ isActive ? 'fad' : icon.style }} {{ icon.name }}"></i> About us </a>
The icon column
There is an icon
type column available to show the selected icon in your list controllers.
Using the icon picker in the Rich Editor
You can add the Font Awesome Icon Picker to the rich editor by adding insertIcon
to your toolbar buttons.
Navigate to Settings > Editor Settings > Toolbar Buttons and add insertIcon
, for example:
bold, italic, underline, |, insertIcon, |, insertSnippet, insertPageLink, insertImage, |, html
Using custom icons in your plugin or code
Using custom icons is simple, but make sure that your Kit has all styles that you want to use available. You can also use styles that aren't selected in the settings panel, as long as they are enabled in your Kit.
You can include the icons everywhere, for example in a button:
<a href="/" class="button"> <span class="button__label">Check out our offers</span> <i class="button__icon fas fa-arrow-right"></i> </a>
Using icons in the OctoberCMS Backend
You can use Font Awesome icons on places where OctoberCMS and Phosphor icons are available.
When creating forms with tabs:
icons: General: fal fa-clipboard-list-check Settings: fal fa-gear fields: title: label: Title tab: General
Or when registering menu items in your plugin:
public function registerNavigation(): array { return [ 'my_plugin' => [ 'label' => 'My Plugin', 'url' => Backend::url('vendor/plugin/controller'), 'icon' => 'fal fa-vials', ], ]; }
What if I'm using Font Awesome on my website already?
That shouldn't be a problem, but you should do some clean up:
- Make sure that other references to the Font Awesome CDN or Kits are removed, so you don't load Font Awesome twice.
- If you're still using Version 4, don't forget to enable
Older Version Compatibility
or update your font awesome icons names.
Upgrading from version 5 to version 6
You'll be set in a few seconds: simply change the Font Awesome version in your kit from version 5 to 6. Everything should work out of the box.
Upgrading from version 4 to version 6
Font Awesome 6 contains new styles and renamed a lot of icons compared to version 4. You can check out the new syntax and all updated icon names in the guide: upgrade from version 4.
Don't want to change all icon names right now? You can simply enable
Older Version Compatibility
in your Kit settings.
Feature Requests and Support
You can contact us by sending a mail to support@helder.work if you have any questions, feature requests or problems with the plugin.
We want to ask you to not use the feedback system to get support on the plugin. E-mail us if you're stuck. We try to get back to you within 24 hours, but usually it's within a few hours (depending on our opening times).
We're open to new ideas, since this plugin was originally build for internal usage. Chances are that you have a use case that we haven't thought about yet.
Contributing translations
If you're interested in translating the plugin, let us know! You can clone the language file in the plugin and mail it to support@helder.work.
-
Maarten Machiels
Found the plugin useful on 2 Oct, 2024
Great plugin and great support from the team at Helder.
-
KWS Seuren
Found the plugin useful on 29 Aug, 2024
The Form Field is perfect for our custom forms and the search function is really easy to use.
-
Harm Winnemuller
Found the plugin useful on 29 Aug, 2024
Easy to use and set up and works nicely with the default rich editor.
-
1.0.6 |
The icon search modal input will now autofocus. Nov 27, 2024 |
---|---|
1.0.5 |
Fixed a bug that prevented the backend styling from loading. Oct 03, 2024 |
1.0.4 |
Added a save button in the advanced settings tab. Oct 02, 2024 |
1.0.3 |
We've added an option to disable Font Awesome in the front-end. Oct 02, 2024 |
1.0.2 |
You can now show icon in your list controller with the icon column type. Sep 27, 2024 |
1.0.1 |
Form widget icons now have 3 properties; class, icon and style. Aug 27, 2024 |
1.0.0 |
Initial release of the Font Awesome plugin. Aug 26, 2024 |