Hey,
I’m from Germany and our new privacy laws require to not load google fonts from the API but host them locally. A new customer asked me to fix this on his very old wordpress site. I set up a folder for my fonts and imported them to the style.css like so:
@font-face {
font-family: ‘Ubuntu’;
font-style: normal;
font-weight: 300;
src: local(”),
url(‘../themename/fonts/ubuntu-v20-latin-300.woff2’) format(‘woff2’), /* Chrome 26+, Opera 23+, Firefox 39+ */
url(‘../themename/fonts/ubuntu-v20-latin-300.woff’) format(‘woff’); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
Problem: the new customer uses a rather old wordpress theme called “cherry framework”. This has no option for loading fonts locally but has Google API requests baked in.
Is there an easy way to force the theme/overwrite the themes settings, so it won’t load Google fonts from the API but my local files instead? Or do I have to search through all requests in the Theme and replace all paths with a path to my local fonts? It imports font awesome from external source too, but I want to fix google fonts first.

[https://wordpress.org/plugins/host-webfonts-local/#description])
here you go.
You should be able to dequeue the style:
[https://wordpress.ezoic.com/how-to-remove-google-fonts-from-your-wordpress-site/])
The style is enqueued here: CherryFrameworkadminoptions-sanitize.php
Unless it’s changed (I’ve never used it) – Otherwise – if you can download the cherry framework locally, you can search within files to find the ‘enqueue_style’ – and get the name to unenqueue.