Archived topic
Fontawsome Not Showing in Footer Widget
5 replies · Started by akmhou on September 23, 2019
Hello,
I've added the following code via Code Snippet:
add_action( 'wp_enqueue_scripts', 'tu_load_font_awesome' );
/**
* Enqueue Font Awesome.
*/
function tu_load_font_awesome() {
wp_enqueue_style( 'font-awesome', '//use.fontawesome.com/releases/v5.5.0/css/all.css', array(), '5.5.0' );
}
I've using a Custom HTML footer widget and added...
<p>
<i class="fas fa-map-marker-alt"></i> 6140 Highway 6, Suite 175<br><i class="fas fa-map-marker-alt" style="color:#08294e;"></i> Missouri City, TX 77459</p>
<p>
<i class="fas fa-phone-alt"></i> 281.969.7514
</p>
<p>
<i class="fas fa-envelope"></i> Email Me (Form)
</p>
The Fontawsome icons show correctly on the front page and one other page (My Story), but not on the others.
How can I fix this?
Thanks,
Achinta
Hi there,
You need to install the plugin:
https://en-ca.wordpress.org/plugins/better-font-awesome/
As well as the snippet:
https://docs.generatepress.com/article/font-awesome/#font-awesome-5
To use Font Awesome 5.
It's currently working on some pages likely because Elementor (or another plugin) is loading it for you.
Let me know if this helps :)
Hi Leo,
Thanks lot for your solutions. As usual, very quick response.
I'll try them out and let you know.
Regards,
Achinta
No problem :)
Hi Leo,
Thanks a lot for your suggestions. However, I decided to create a custom footer using Elementor.
I'm marking this as resolved.
Thanks,
Achinta
No problem :)