Download the PHP package smithfield-studio/acf-svg-icon-picker without Composer
On this page you can find all versions of the php package smithfield-studio/acf-svg-icon-picker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package acf-svg-icon-picker
ACF SVG Icon Picker Field
Forked from houke/acf-icon-picker (which is no longer in active dev), updated to work with ACF v6.3 and above.
Description
Add the svg icons you want to be available in your theme to an acf folder inside an img folder in your theme. The field returns the name of the svg.
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
- Copy the
acf-svg-icon-picker
folder into yourwp-content/plugins
folder - Activate the Icon Selector plugin via the plugins admin page
- Create a new field via ACF and select the Icon Selector type
Switch from 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:
- Deactivate the old ACF Icon Picker plugin
- Install the ACF SVG Icon Picker plugin via Composer or manually
- Activate the ACF SVG Icon Picker plugin
- Go over your field configurations and change the field type from
icon-picker
tosvg_icon_picker
in the field settings. Be aware of the underscores in the field type name. - Check if the field type is now available in your ACF field settings
Filters
Use the below filters to override the default icon folder, path, and / or URL:
For Sage/Bedrock edit filters.php:
Using with ACF Builder / ACF Composer
Changelog
- 3.1.0 - Changed name of field to
svg_icon_picker
to avoid conflicts with vanilla ACF Icon Picker field. - 3.0.0 - Revert to original ACF field name, quick tidy + README updates
- 2.0.0 - Fix for ACF 6.3 which now has an official icon-picker field + merged open PRs from Levdbas & phschmanau
- 1.9.1 - ACF 6 compatibility fix. Thanks to idflood
- 1.9.0 - Fix issue with Gutenberg preview not updating when removing. Thanks to cherbst
- 1.8.0 - Fix issue with Gutenberg not saving icon. Thanks to tlewap
- 1.7.0 - 2 new filters for more control over icon path. Thanks to benjibee
- 1.6.0 - Performance fix with lots of icons. Thanks to idflood
- 1.5.0 - Fix issue where searching for icons would break preview if icon name has space
- 1.4.0 - Add filter to change folder where svg icons are stored
- 1.3.0 - Adding close option on modal
- 1.2.0 - Adding search filter input to filter through icons by name
- 1.1.0 - Add button to remove the selected icon when the field is not required
- 1.0.0 - First release