This Tutorial is about how to use the Official FontAwesome WordPress Plugin with DSGVO/GDPR compatible local font hosting.
https://wordpress.org/plugins/font-awesome/
https://use.fontawesome.com/releases/v6.4.2/fontawesome-free-6.4.2-web.zip
Unzip & upload the whole folder to wp-content/uploads/fontawesome
Add this CSS resource link into your page header
<!-- FontAwesome Local -->
<link href="/wp-content/uploads/fontawesome/css/all.min.css" rel="stylesheet">
You can use this plugin to do this: https://wordpress.org/plugins/custom-codes/
Add this custom PHP code, you can to this with the same custom-codes plugin as suggested
// Disable load FontAwesome from CDN
add_action('wp_enqueue_scripts', static function() {
wp_dequeue_style('font-awesome-official');
wp_deregister_style('font-awesome-official');
}, 20);
https://your-site.com/wp-admin/options-general.php?page=font-awesome
Make sure the plugin is configured this way:
- Use CDN
- Free
- Web Font
- Version 6.4.2
- Compatibility off
Somehow the CSS resource link:
"/wp-content/uploads/fontawesome/css/all.min.css" rel="stylesheet"
Creates an error saying: "Updating Failed. The Response is Not a Valid JSON Response" every time I save a page.