Hi,
I purchased Font Awesome and I followed your guide on another users post to add the following to my child functions folder… But I am having problems, are you able to help me please?
add_action('wp_head','font_awesome_scripts');
function font_awesome_scripts() {
?>
<script defer src="/js/packs/solid.js"></script>
<script defer src="/js/fontawesome.js"></script>
<?php
}
I then used this code in Pro:
<i class="fas fa-walking"></i>
But the icon is not showing up. I wonder if I have missed a step, or if I have placed the font awesome folders in the wrong place? I placed mine in my plugins folder, then added this to functions…
add_action('wp_head','font_awesome_scripts');
function font_awesome_scripts() {
?>
<script defer src="/wp-content/plugins/fontawesome-pro/js/packs/solid.js"></script>
<script defer src="/wp-content/plugins/fontawesome-pro/js/fontawesome.js"></script>
<?php
}