There are still many themes that automatically load the Font Awesome icons and do not give users the option to prevent this. If you do not need the icons or would prefer to load them locally, you will need to disable loading them through the theme. Below, we explain how this works.
But first, we briefly explain what Font Awesome icons actually are, everyone has surely seen them before.
What is Font Awesome?
Font Awesome is the most widely used toolkit for vector icons that can easily be customized with CSS. You can change the size and color of the icons, add a drop shadow, or use animated loading icons, among other things. As the name suggests, the icons look “awesome,” according to their own description 😉 In fact, they are a popular styling tool for enhancing or designing a website with icons.

Disable automatic loading of Font Awesome
Reasons to disable automatic loading from an external server may include performance improvements and, of course, GDPR compliance.
First, you should find out which handle is used to call the stylesheet. To do this, it’s best to look in the theme’s functions.php file and search for the term font-awesome or fontawesome in connection with the wp_enqueue_style call.
In our theme for the demo, the corresponding line was
wp_enqueue_style('mh-font-awesome', "//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css", array(), null);
The $handle is therefore mh-font-awesome
You can find more information about the wp_enqueue_style function in the wordpress.org code reference.
Now the following code needs to be added to the child theme’s functions.php to prevent it from loading:
// Dequeue Styles - Remove Font Awesome from WordPress Theme
add_action( 'wp_print_styles', 'dequeue_font_awesome_style' );
function dequeue_font_awesome_style() {
wp_dequeue_style( 'mh-font-awesome' );
wp_deregister_style( 'mh-font-awesome' );
}
In the code reference from wordpress.org you can find more information about the function wp_dequeue_style



