CMB2 Field Type: Font Awesome

CMB2 Field Type: Font Awesome Install Statistics

0
100%
Today: 0 Yesterday: 0 All-time: 6,301 downloads
CMB2 Field Type: Font Awesome Icon

Try plugin: CMB2 Field Type: Font Awesome

We'll create fresh WordPress site with CMB2 Field Type: Font Awesome installed. You have 20 minutes to test the plugin after that site we'll be deleted.

Takes ~10 seconds to install.

About CMB2 Field Type: Font Awesome

Font Awesome icon selector for powerful custom metabox generator CMB2

1


0


0


0


0

updated: 5 years ago
since: 6 years ago
author: Serkan Algur

Description

Font Awesome icon selector for powerful custom metabox generator CMB2

You can use as field type in CMB2 function file. Add a new field, set type to faiconselect and add font awesome icons to options (look Usage for examples). Plugin uses jQuery Font Picker for creating a icon selector.

Sample Usage

Detailed instructions on Github

$cmb->add_field( array(
    'name' => __( 'Select Font Awesome Icon', 'cmb' ),
    'id'   => $prefix . 'iconselect',
    'desc' => 'Select Font Awesome icon',
    'type' => 'faiconselect',
    'options' => array(
    'fa fa-facebook' => 'fa fa-facebook',
    'fa fa-500px'    => 'fa fa-500px',
    'fa fa-twitter'  => 'fa fa-twitter'
    )
) );

Sample Usage With Font Awesome 5

$cmb->add_field( array(
    'name' => __( 'Select Font Awesome Icon', 'cmb' ),
    'id'   => $prefix . 'iconselect',
    'desc' => 'Select Font Awesome icon',
    'type' => 'faiconselect',
    'options' => array(
        'fab fa-facebook' => 'fa fa-facebook',
        'fab fa-500px'       => 'fa fa-500px',
        'fab fa-twitter'     => 'fa fa-twitter',
        'fas fa-address-book' => 'fas fa-address-book'
    ),
    'attributes' => array(
        'faver' => 5
    )
) );