CMB2 Field Type: Font Awesome

CMB2 Field Type: Font Awesome

By Serkan Algur

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
    )
) );

  1. Upload cmb2-field-type-font-awesome folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
undefined

Version 1.4

  • Composer Support Added

Version 1.3-beta

  • Test for Gutenberg
  • Font Awesome 5 support added
  • Code Fixes

Version 1.2

  • Version corrections and tests
  • fontawesome & mainjs definition fix

Version 1.1

  • Group Field Problem Solved
  • Icon Selector js updated to latest version

Version 1.0

  • Released
Version
1.4
Last Update
6 years ago
Download
6,817+
Tested up to:
5.2.21
Categories:
General

Screenshots

Alternative Plugins for CMB2 Field Type: Font Awesome

CMB2 is a metabox, custom fields, and forms library for WordPress that will blow your mind.

Categories: General

Allows you to add Font Awesome 4 icons to your WordPress menus or anywhere on your site. No programming necessary!

Categories: General

Isn't that natural to just click on something, drag it, choose color from color picker, use slider to change the size and do other modifications …

Categories: General

Finally beautiful weather widgets for your beautiful WordPress website.

Categories: General

The official way to use Font Awesome Free or Pro icons on your WordPress site, brought to you by the Font Awesome team.

Categories: General

Add More Font Styles & Sizes To Your Visual Editor in WordPress

Categories: General

Font Organizer is the complete solution for font implementation including uploading custom fonts and using google fonts in WordPress websites.

Categories: General

Easily use the Font Awesome icons in WordPress but with MORE icons and MORE features…

Categories: General

Create a photo gallery of your Flickr photos on your WordPress enabled Website enabling you to customize it the way you like it.

Categories: General

Discover the Lists with CMB2 Field Type: Font Awesome

startup

By Vitor Francisco Freitas dos Santos

marketing digital inicial

Credit Platform

By Elliot Gerchak

exp

By kan imai

Site - Post Editor

By Gisar

Site - Post Editor

FarrowSystem.EU - ALL Plugins

By Andreas Tyrosvoutis

A save of all the plugins from when it was migrated from multisite. Just for historical purposes.

OS WooCommerce Plugins New Install

By Brett Walling

My list of plugins I use for WooCommerce sites.