An icon fonts manager and picker for WordPress
If you looking for an icon picker, this's last choice your need.
- Allow you import/register unlimit icon fonts in to your site and manager them.
- Provider a picker-icon, integrated with almost popular WordPress plugins, frameworks, etc...
- Fluent API, easy use for other.
WP Simple Iconfonts supports almost popular WP framework, metabox... just use a 'type' => 'simple_iconfonts'
to display icon picker field.
List currently support icon-picker field/control:
- WP Customizer
- CMB2
- ACF
- Kirki
- Redux Framework
- Titan Framework
- CMB by humanmade
- Metabox
- Visual Composer
- https://github.com/valendesigns/option-tree
- https://github.com/devinsays/options-framework-plugin
- https://github.com/Codestar/codestar-framework
See the example to see how it works.
We also have a function to display picker field, checkout this example:
<?php
// Get value from database...
$values = array(
'type' => '',
'icon' => '',
);
wp_simple_iconfonts_field( array(
'id' => '_simple_icon',
'name' => '_simple_icon',
'value' => $values
) );
Checkout this very simple example:
NOTE: An icon pack registerd via PHP will be set "lock" status, you can't deactive or remove it from dashboard.
<?php
function register_new_icons( $iconfonts ) {
$iconpack = new \WP_Simple_Iconfonts\Iconpack(array(
'id' => 'dashicons',
'name' => 'Display name',
'version' => '0.1.1',
'stylesheet_uri' => 'maybe_same_your_id',
'stylesheet_uri' => 'https://your-site.com/path-to-styles.css',
$groups = array(
array(
'id' => 'admin',
'name' => 'Admin',
),
array(
'id' => 'post-formats',
'name' => 'Post Formats',
),
),
'icons' => array(
array(
'id' => 'dashicons-admin-appearance',
'name' => 'Appearance',
'group' => 'admin',
),
array(
'id' => 'dashicons-admin-collapse',
'name' => 'Collapse',
'group' => 'admin',
),
array(
'id' => 'dashicons-format-standard',
'name' => 'Standard',
'group' => 'post-formats',
),
),
));
$iconfonts->register( $iconpack );
}
add_action( 'wp_simple_iconfonts', 'register_new_icons' );
- Fontello (https://fontello.com)
- Icomoon (https://icomoon.io/app)
- Font Awesome (https://fontawesome.io)
- Foundation Icon Fonts 3 (https://zurb.com/playground/foundation-icon-fonts-3)
- Ionicons (https://ionicons.com)
- Elusive (https://elusiveicons.com)
- PaymentFont (https://paymentfont.io)
- Pixeden (https://www.pixeden.com/icon-fonts)
- Themify Icons (https://themify.me/themify-icons)
- Typicons (https://typicons.com)
- Map Icons (https://map-icons.com)