Custom field to pick icon from fontawesome icons.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
assets
resources
.gitignore
LICENSE
README.md
cmb2-fontawesome-picker.php
composer.json

README.md

CMB2 Field Type: Font-Awesome Picker

Custom field for CMB2.

##Example

// Classic CMB2 declaration
$cmb = new_cmb2_box( array(
  'id'           => 'prefix-metabox-id',
  'title'        => __( 'Title', 'textdomain' ),
  'object_types' => array( 'post', ), // Post type
) );

// Add new field
$cmb->add_field( array(
  'name'        => __( 'Select Icon', 'textdomain' ),
  'id'          => 'prefix_icon',
  'type'        => 'fontawesome_icon', // This field type
) );

Credits

This plugin uses the following jquery plugin

https://github.com/mjolnic/fontawesome-iconpicker