We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum

Forum

Thread tagged as: Addons, Showcase, Add-on-development

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.

Jordin Brown

Jordin Brown 0 points

  • 1 month ago

I will most definitely use this. Thank you!

Hussein Al Hammad

Hussein Al Hammad 105 points
Registered Developer

Nice stuff, Jordin.