Prevent WordPress TinyMCE Editor removing Font Awesome tags

Having recently built a custom WordPress theme making use of the icon font Font Awesome, I came across an issue where the icon tag would be stripped from the TinyMCE editor.

Using the standard markup provided on the Font Awesome pages (Gamepad), the tag would be removed when alternating between Text and Visual editing mode.

fa-gamepad
<i class="fa fa-gamepad"> fa-gamepad

Continue reading “Prevent WordPress TinyMCE Editor removing Font Awesome tags”