Remove Font-Awesome Link

Hi,
how is it possible to remove this link:

<link rel='stylesheet' id='font-awesome-css' href='https://use.fontawesome.com/releases/v5.0.2/css/all.css?ver=4.9.5' type='text/css' media='all' />

Yes, I know it’s not recommended, but I want/need to host the Icons on own server because of the new data regulations stuff in europe.

I managed to remove the google fonts link from X in my function.php in the child-theme, but please can you give me an advice for the font-awesome thing?

Thank you!

// Remove Google Fonts from X
// =============================================================================

function x_remove_google_fonts(){
wp_dequeue_style( ‘x-font-custom’ );
wp_dequeue_style( ‘x-font-standard’ );
}

add_action( ‘wp_enqueue_scripts’, function() {
wp_dequeue_style( ‘x-google-fonts’ );
}, 99 );

Hi There,

The X theme includes the font awesome in this directory: x/framework/fonts/font_awesome/fontawesome-webfont.woff2.

The above link might come from the 3rd party plugins. Please try testing a plugin conflict. You can do this by deactivating all third-party plugins, and see if the problem remains. If it’s fixed, you’ll know a plugin caused the problem, and you can narrow down which one by reactivating them one at a time.

Let us know how it goes!

The problem is solved. I switched all plugins off and on again. Nothing helped. So I reinstalled plugins and killed all caches. Now it’s gone. So I can’t say wich plugin caused the link. But thanks for your help and the advices!

Glad to hear it’s sorted.

Cheers!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.