Advanced Custom Fields: SVG Icon Picker
Creates an ACF SVG Icon Picker field
by Smithfield & Studio Lemon · github.com/smithfield-studio/acf-svg-icon-picker · website
★ 40stars
14kcomposer installs
10forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/smithfield-studio/acf-svg-icon-picker/archive/refs/heads/main.zipAlso on Packagist as smithfield-studio/acf-svg-icon-picker:
composer require smithfield-studio/acf-svg-icon-pickerDeclares an update source (https://github.com/smithfield-studio/acf-svg-icon-picker), so updates arrive through the plugin's own updater.
From the readme
ACF SVG Icon Picker Field
Add a field type to ACF for selecting SVG icons from a popup modal. Theme developers can provide a set of SVG icons to choose from.
Compatibility
This ACF field type is compatible with:
- [x] ACF 6
- [x] ACF 5
Screenshots
Installation
via Composer
Run composer require smithfield-studio/acf-svg-icon-picker and activate the plugin via the plugins admin page.
Manually
1. Copy the acf-svg-icon-picker folder into your wp-content/plugins folder
2. Activate the plugin
3. Create a new ACF field and select the SVG Icon Picker type
Switch from the legacy 'ACF Icon Picker' to 'ACF SVG Icon Picker'
If you're coming from the original ACF Icon Picker plugin, you can switch to this plugin by following these steps:
1. Deactivate the old ACF Icon Picker plugin
2. Install the ACF SVG Icon Picker plugin via Composer or manually
3. Activate the ACF SVG Icon Picker plugin
4. Configure your desired icon path via the new filters. Remove any old filters in use: acficonpath, acficonurl or acficonpathsuffix.
5. Go over your field configurations and change the field type from icon-picker to svgiconpicker in the field settings. Be aware of the underscores in the field ty
Read the full README on GitHub →