viivue / acf-icomoon Goto Github PK
View Code? Open in Web Editor NEWπ© Advanced Custom Field add-on to select IcoMoon
Home Page: https://wordpress.org/plugins/acf-icomoon/
π© Advanced Custom Field add-on to select IcoMoon
Home Page: https://wordpress.org/plugins/acf-icomoon/
We don't have to show all of the icons in the popup. Some of them are just used for system UI.
So, it's nice to have a filter here, and manageable somewhere in the admin.
Trying to adjust the path in the acf field to assets/fonts/icomoon/selection.json
or dist/fonts/icomoon/selection.json
will result in an empty overlay (where you can actually select the icons).
I think it would be nice if
Linked with this issue on WP.
Icomoon field donβt save in post or page, if use field in repeater mode for Guttenberg block. With like settings.
I am getting this message logged in my console:
You are running a development build of Vue.
Make sure to use the production build (*.prod.js) when deploying for production.
Hi there,
I just discovered your plugin, great work thanks!
The only reason I'm using IcoMoon in this project I'm currently developing and not Grunt webfont for example, is because I needed a Duotone icon font, following this guide. It all works well, the downloaded demo files are in duotone but IcoMoon uses <span>
inside the <i>
to override the colors.
In my selection.json file I can see all the color definitions in every icon, for example:
{
"icons":
[
{
"attrs":
[
{
"fill": "rgb(244, 159, 64)"
},
{
"fill": "rgb(0, 0, 0)"
},
{
"fill": "rgb(0, 0, 0)"
}
],
"icon":
{
"attrs":
[
{
"fill": "rgb(244, 159, 64)"
},
{
"fill": "rgb(0, 0, 0)"
},
{
"fill": "rgb(0, 0, 0)"
}
],
"colorPermutations":
{
"1244159641":
[
{
"f": 1
},
{
"f": 0
},
{
"f": 0
}
]
},
"grid": 0,
"isMulticolor": true,
"isMulticolor2": false,
"paths":
[
"M761.6 675.2c25.6 0 44.8-19.2 44.8-44.8v-217.6c0-25.6-19.2-44.8-44.8-44.8h-697.6v304h697.6zM448 425.6c0-6.4 6.4-12.8 12.8-12.8h41.6c9.6 0 12.8 9.6 9.6 16l-28.8 76.8h28.8c9.6 0 16 9.6 9.6 19.2l-60.8 102.4c-3.2 6.4-16 3.2-16-3.2l9.6-83.2h-28.8c-6.4 0-12.8-6.4-12.8-12.8l35.2-102.4z",
"M992 412.8c-19.2 0-32 16-32 32v108.8c0 19.2 16 32 32 32s32-16 32-32v-105.6c0-19.2-16-35.2-32-35.2z",
"M848 240h-784c-35.2 0-64 28.8-64 64v412.8c0 35.2 28.8 64 64 64h784c35.2 0 64-28.8 64-64v-412.8c3.2-35.2-25.6-64-64-64zM848 675.2c0 25.6-19.2 44.8-44.8 44.8h-694.4c-25.6 0-44.8-19.2-44.8-44.8v-326.4c0-25.6 19.2-44.8 44.8-44.8h697.6c25.6 0 44.8 19.2 44.8 44.8l-3.2 326.4z"
],
"tags":
[
"battery"
]
},
"iconIdx": 0,
"properties":
{
"code": 59648,
"codes":
[
59648,
59649,
59650
],
"id": 2,
"name": "battery",
"order": 2,
"prevSize": 32
},
"setId": 0,
"setIdx": 0
},
],
}
In the field settings I used both Icon element (HTML)
as SVG element
as return value;
Icon stays blank (because it's missing the spans), SVG is rendered correctly but in monotone (because it's missing the colors).
Is this currently not supported (yet) in your plugin?
Thanks a lot!
When using the Shift key + click to duplicate the ACF repeater item, I think the ACF Icomoon search result should be reset. In that way, I can do another search to update the new icon for the duplicated item.
@phucbm Could you test this behavior when doing the new project?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.