Configuration

Create an icon-picker.php file under your /config directory with the following options available to you. You can also use multi-environment options to change these per environment.

<?php

return [
    '*' => [
        'iconSetsPath' => CRAFT_BASE_PATH . '/web/icons/',
        'iconSetsUrl' => '/icons/',
        'maxIconsShown' => 100,
    ]
];

Configuration options #

  • iconSetsPath - File system path to the base folder for your icons. The default is an icons folder in your web root directory (named web).
  • iconSetsUrl - The base URL prepended to the path and filename of the icon. The default is an icons folder in your web root.
  • maxIconsShown - Set the maximum number of icons shown to pick from in the icon selection pane. This will not effect searching.

Control Panel #

You can also manage configuration settings through the Control Panel by visiting Settings → Icon Picker.

Get started with Icon Picker

Available for Craft 3 for $19