I had made a previous showing how to make FontAwesome icons work on an HTML website (you can watch it here: How to Fix FontAwesome Icons on HTML Site
In your custom WordPress theme website, you’ll need to add this code within the functions.php where all the styles are being loaded.
Instead of calling for the CSS WebFont like this:
wp_enqueue_style(‘font-awesome-solid’, ‘//use.fontawesome.com/releases/v5.8.1/css/all.css’);
Call for the FontAwesome SVG, and this might fix your error, like this:
wp_enqueue_script(‘font-awesome-solid’, ‘//use.fontawesome.com/releases/v5.8.1/js/all.js’);
Note: these are the updated FontAwesome icons’ links as of April 25, 2019.
Music credits: https://www.bensound.com
Have any questions or comments? Write them below!