Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Facets 3.0.7 Minor update available for module facets (3.0.7). Release: Superfish Dropdown Menu 8.x-1.16 Minor update available for module superfish (8.x-1.16). Release: Burndown 1.0.78 Minor update available for module burndown (1.0.78). Release: Prototype 5.6.0 Minor update available for theme prototype (5.6.0). Release: Prototype 5.5.1 Minor update available for theme prototype (5.5.1). Release: Native Observability 1.1.0 Minor update available for module native_observability (1.1.0). Release: Educare theme 1.0.0 Initial release available for theme vartheme_bs5_educare (1.0.0)! Release: Webform Integration for MailerLite 1.1.0 Minor update available for module clicksyncr_mailerlite (1.1.0). Usage Milestone: Shortcode Module shortcode crossed 1,000 active installs. Module Revived: Entity Add Another 1.1.0 Module entity_add_another updated after 15 months of inactivity (1.1.0).

Font Iconpicker

264 sites Security covered Drupal 10–11
View on drupal.org

This module integrates the FontIconPicker library, providing a new form element and field type for selecting icons. It allows you to use your own custom icon fonts by configuring their paths and class prefixes.

Integrates https://fonticonpicker.github.io/ (using jQuery) with Drupal. Make available a new "Font Icon Picker" form element and field type.

Unlike other modules project of the community which is limited to offering FontAwesome, this module allows you using a configuration form to enter the path of your own/custom font.

How to install

Manual installation

  1. Download the library from https://fonticonpicker.github.io/
  2. Place the library in the root libraries folder (/libraries/fonticonpicker).

Finally, enable "Font Icon Picker" module in the Drupal admin.

Composer-based installation

Method 1 - using composer-merge-plugin (recommended)

This method has the advantage of placing the maintenance of the plugin version on the hands of the module maintainers. To add the composer-merge-plugin, run
composer require wikimedia/composer-merge-plugin.

Then, update the extra section of the root composer.json file as follows:

    "extra": {
        "merge-plugin": {
            "include": [
                "[web-root]/modules/contrib/font_iconpicker/composer.libraries.json"
            ]
        }
    }

Replace [web-root] with the value of your web root folder (usually web).
Run composer require drupal/font_iconpicker fonticonpicker/fonticonpicker,
the FontIconPicker library will be installed to the libraries folder automatically.

Method 2 - using a custom repository (required in versions <=1.0.4 of the module)

Copy the following into the root composer.json file's repository key.

    "repositories": [
        {
            "type": "package",
            "package": {
                "name": "fonticonpicker/fonticonpicker",
                "version": "v3.1.1",
                "type": "drupal-library",
                "dist": {
                    "url": "https://github.com/fontIconPicker/fontIconPicker/releases/download/v3.1.1/fontIconPicker.zip",
                    "type": "zip"
                },
                "require": {
                  "composer/installers": "~1.0 || ~2.0"
                }
            }
        }
    ]

Run composer require drupal/font_iconpicker fonticonpicker/fonticonpicker, the FontIconPicker library will be installed to the libraries folder automatically as well.

A requirement message popup in status report if library is not correctly installed.

Next steps

Once the module is installed, you must go to the configuration page of the module to fill in the path of the style sheet of your icon font and you icon class prefix : `/admin/config/user-interface/font-iconpicker`.

A new field type named "font_iconpicker" is now available.

Related

jQuery fontIconPicker (MIT license) :This library provides a font iconpicker integration with any font. The library provides 4 themes. You can select them in a configuration form so that the rendering is as close as possible to your site.

Depends on

Dependencies of the latest stable release

  • field Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
3
Tracked since
Nov 2024
Latest release
1 month ago
Releases (12 mo)
2 ▲ from 1
Maintenance
Active

Release Timeline

Releases

Version Type Core Release date
1.2.0 Stable 10–11 Jul 23, 2026
1.0.x-dev Dev 10–11 Jul 23, 2026
1.1.5 Stable 9–11 Nov 7, 2024