Skip to content

A package that allows you to pick icons from fontawesome with wordplate

Notifications You must be signed in to change notification settings

starringjane/wordplate-fontawesome-picker

Repository files navigation

Starring Jane

Wordplate Fontawesome Picker

A package that allows you to pick icons from with wordplate

Installation

Download the icons from https://fontawesome.com and put them in your repository

Then require the package

composer require starring-jane/wordplate-fontawesome-picker

Create a WordplateFontawesomePicker instance in functions.php and add the path to the icons you just downloaded

use StarringJane\WordplateFontawesomePicker\WordplateFontawesomePicker;

$path_to_icons = '...';

WordplateFontawesomePicker::create($path_to_icons);

Usage

use StarringJane\WordplateFontawesomePicker\Fields\IconPicker;

IconPicker::make('Icon')
    ->instructions('Click to select an icon');

Contributors

Credits

Special thanks to the contributors of wordplate for allowing us to create Wordpress websites in a modern development environment