Advanced Custom Fields: SVG Icon
Add a new ACF field type: "SVG Icon" which allows you to select icon(s) from a SVG sprite.
by Xavier Zalawa · github.com/7studio/acf-svg-icon · website
★ 37stars
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/7studio/acf-svg-icon/archive/refs/heads/master.zipFrom the readme
ACF SVG Icon Field
Welcome to the Advanced Custom Fields SVG Icon repository on Github.
First ideas of this plugin come from BeAPI/acf-svg-icon
but they were reorganised and enhanced by my mind :yum:
Description
Add a new ACF field type: "SVG Icon" which allows you to select icon(s) from a SVG sprite.
This plugin works only with the ACF PRO (version 5.5.0 or higher).
Usage
Choose a SVG file for a specific field
There are three possible ways to use this feature.
1. acf/fields/svgicon/filepath - filter for every field
2. acf/fields/svgicon/filepath/name={$fieldname} - filter for a specific field based on its name
3. acf/fields/svgicon/filepath/key={$fieldkey} - filter for a specific field based on its key
Translate the SVG text alternatives
There are four possible ways to use this feature.
The first three ones are offered by filter hooks like all ACF fields:
1. acf/fields/svgicon/symbols - filter for every field
2. acf/fields/svgicon/symbols/name={$fieldname} - filter for a specific field based on its name
3. acf/fields/svgicon/symbols/key={$fieldkey} - filter for a specific field based on its key
By the way, you can also use this filter to reduce the list of SVG symbol
Read the full README on GitHub →
Releases
| Tag | Published |
|---|---|
| 1.0.1 | Sep 12, 2018 |
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.