backdrop-contrib / font_awesome

Include Font Awesome Icons via CSS classes in your Backdrop CMS website
https://backdropcms.org/project/font_awesome
GNU General Public License v2.0
2 stars 4 forks source link
backdrop backdropcms cms css font-awesome icon icons theme

Font Awesome

This module allows including Font Awesome icons via CSS classes in your website. It loads the Font Awesome CSS file via a CDN to reduce server load.

You can use Font Awesome icons in your own module/theme with the following code:

if (module_exists('font_awesome')) {
  // Add Font Awesome CSS classes to your HTML here.
  // See https://fontawesome.com/how-to-use/on-the-web/referencing-icons/basic-use for examples.
}

Font Awesome icons are also exposed to the core Backdrop icon API.

Installation

Advanced Usage

On the configuration page, you can select 'Local' to define an alternative local path for the Font Awesome CSS file. This enables you to load a custom version of the library, such as a slimmed down version with only the icons needed for your site.

You can also select 'Other' if the icons will be loaded via the theme or possibly a custom module, but you still need this module to enable Font Awesome Field, as a dependency to another module or to enable enhancements within another module. Loading this way also enables you to customise the library.

You can use 'None' if you only plan to use the locally-provided SVGs through Backdrop's core icon API and you don't want the Font Awesome CSS to be loaded automatically. (Backdrop 1.28.0 and higher).

Issues

Bugs and Feature requests should be reported in the Issue Queue: https://github.com/backdrop-contrib/font_awesome/issues

Current Maintainers

Credits

License

This project is GPL v2 software. See the LICENSE.txt file in this directory for complete text.