Tom Profile Topics Started Replies Created Engagements Favorites Forum Replies Created list of topics you have created till now. TomParticipant 14 March 2021 at 12:19 Posted in : Hosting Google Fonts locally #70693 I found someone to help me with this. It’s solved. TomParticipant 12 March 2021 at 20:37 Posted in : Hosting Google Fonts locally #70674 I think what I basically need is sample code to A) prevent the theme to request call to Google (I want to do that due to GDPR). I found this code in the functions.php that might be relevant: // Enqueue style wp_enqueue_style( ‘unifrakturmaguntia’, ‘//fonts.googleapis.com/css?family=UnifrakturMaguntia’ . $subset, null, null ); wp_enqueue_style( ‘coustard’, ‘//fonts.googleapis.com/css?family=Coustard’ . $subset, null, null ); wp_enqueue_style( ‘lora’, ‘//fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic’ . $subset, null, null ); So I’d need to disable this somehow, but don’t know how. B) to redirect the calls to the fonts on my own server (I created that folder and copied the necessary fonts into it). The URL would be: https://mywebsite.com/wp-content/uploads/fonts/fontxyz.woff and https://mywebsite.com/wp-content/uploads/fonts/fontxyz.woff2 Again, I don’t know where to add which code to make that work. Maybe you can help? Viewing 2 posts - 1 through 2 (of 2 total)