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:
I am using WP-Optimize for chaching, minifying, zipin,… I disabeled all the functions and purged the cache, but it does not help.
Website: https://paragliding-bovec.com/
Am I missing Something?
Leave an answer
You must login or register to add a new answer .