Home Forums Trusted No more Google Fonts to make theme faster and more DSGVO-compatible Reply To: No more Google Fonts to make theme faster and more DSGVO-compatible

#5635
Andy
Keymaster

Hi,

Add the following php code to the functions.php file of a child theme:

function trusted_fonts_url() {
    return NULL;
}

This will stop the loading of fonts from Google, and the various elements of the theme will fallback to the next available font in the stylesheet.

For example, because the ‘Open Sans’ Google font is now not available, the ‘body’ element will use the next font in the list that the users browser has available… Helvetica, Arial or Verdana

body,
button,
input,
select,
textarea{
    font-family: 'Open Sans', Helvetica, Arial, Verdana, sans-serif;
}