Completely remove Font Awesome from website code


I am using Elementor on my WP website.
In the process of speeding up my site, I also wanted to disable FontAwesome.

In admin panel, the only place I found to disable it was in Elementors advance settings.
I also added the following code in my themes function:

add_action( 'wp_print_styles', 'remove_font_awesome_style' );
function remove_font_awesome_style() {
      wp_dequeue_style( 'fontawesome' );
      wp_deregister_style( 'fontawesome' );

While the icons do not work anymore, google PageSpeed still sees some files conected to FA on my website and I still get some CSS in my code:
enter image description here

enter image description here

I am using WP-Optimize for chaching, minifying, zipin,… I disabeled all the functions and purged the cache, but it does not help.


Am I missing Something?

Martin Peternel 1 month 0 Answers 7 views 0

Leave an answer