Hi there,
First of all, can you help me find some info about the legal requirements you’re mentioning, preferably in English? It’s the first time I hear about it. It seems a bit odd that you are not permitted by law to serve fonts from Google. By that reasoning you would not be able to serve anything from any external site.
Second, the fonts should be on your server, not locally downloaded on your computer if that’s what you meant by local.
Here are the steps:
- You first need to stop Sydney from loading fonts from Google.
function sydney_dequeue_google_fonts() {
wp_dequeue_style( 'sydney-fonts' );
}
add_action( 'wp_enqueue_scripts', 'sydney_dequeue_google_fonts' );
You would add this with a plugin like Code Snippets or, if you have one, in a child theme’s functions.php file.
2. You need to download the font files somewhere on your server.
3. You need to add the code from the site you linked (and modify the links to point to your files). You can add the code in Customize > Additional CSS or in a child theme if you have one.
Regards,
Vlad