trampoline-digital/acf-custom-font-icons

A dependency for theme developers to use arbitrary font icons (such as Fort Awesome) with WordPress and Advanced Custom Fields

dev-master 2016-08-04 16:19 UTC

This package is not auto-updated.

Last update: 2024-05-11 17:56:21 UTC


README

***This is under active development. Use it on production sites at your own risk.

ACF Custom Font Icons

This is a plugin that allows you to use custom font icons (as opposed to just font awesome) in your custom fields.

***This is built to only work with ACFv5

Using the plugin

There are 2 options you must set

  1. Font CSS File Location is a relative path to the css file that has the font classes in your theme.
  2. CSS Class Prefix (optional) is the font prefix you need to use in the css class (fa) this will default to fa

Thats it, go use your awesome fonts.

Writing your template

ACF will return a value in this form fa fa-cool-icon that you can use however you please. I recommend something like <i class="fa fa-cool-icon"></i> but it's really up to you.

License

This is code is released under the MIT License. Sections of it are licensed under other, compatible Open Source licenses.