Viewing 1 reply thread
You must be logged in to reply to this topic.
Hi there,
how is it possible to DISABLE the usage of GOOGLE FONTS.
Here in Germany many people are worried about the GDPR so we need to stop using GOOGLE FONTS in youre theme.
Please help. Thanks!
Hello,
Please go to file functions.php and find this block:
/**
* List Google Fonts
* @since 1.0.0
*/
function codeless_get_google_fonts(){
$return = array('theme_default' => 'Theme Default');
$google_fonts = Kirki_Fonts::get_google_fonts();
$standard_fonts = Kirki_Fonts::get_standard_fonts();
$google_fonts = array_combine(array_keys($google_fonts), array_keys($google_fonts));
$standard_fonts = array_combine(array_keys($standard_fonts), array_keys($standard_fonts));
$return = array_merge($return, $google_fonts, $standard_fonts);
return $return;
}
Edit out to this:
/**
* List Google Fonts
* @since 1.0.0
*/
function codeless_get_google_fonts(){
$return = array('theme_default' => 'Theme Default');
$standard_fonts = Kirki_Fonts::get_standard_fonts();
$standard_fonts = array_combine(array_keys($standard_fonts), array_keys($standard_fonts));
$return = array_merge($return, $standard_fonts);
return $return;
}
Let us know.
Best regards!
You must be logged in to reply to this topic.