Home › Forums › General Issues › Give "Stylised UI" elements a class › Reply To: Give "Stylised UI" elements a class
Okay guys, just made it a little bit less complicated now, no javascript needed. Just a ACF (modern) select field, added all my icons data like this:
...
<i class="icon-bucket">icon-bucket</i>
<i class="icon-gradient">icon-gradient</i>
<i class="icon-gradient2">icon-gradient2</i>
...
Only three for this example, of course there is a long, long list of more or less 800 icons … but loads super fast 🙂 . I then just load the css of my iconfont in my admin.css and put some tiny additional CSS and what I have now is a very nice icon-picker for my wordppress backend:
#ACFisawesome
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.