Forum
Fontawesome Shortcodes
Hi everyone, I just wanted to share a little bit of code that might help others who like to use FontAwesome 5 free or pro that I created for my latest project. I created a shortcode that can be used to add FontAwesome icons to any text field. Here's the GitLab repo! Let me know if it works well for you.
Adding it to your project will allow an editor to enter:
[cms:cfa user]
which will render:
<i class="fa far fa-user"></i>
The project readme documents how to target the different FontAwesome styles : regular, solid, light and brands as well as adding extra FA utility classes.
I will most definitely use this. Thank you!
Nice stuff, Jordin.