Hi there,
I downloaded the necessary Google fonts files with help from google-webfonts-helper and would like to implement them into the Enfold theme instead of loading from Google. A child theme exists. The fonts are copied to enfold-child/css/fonts, and @font-face … is in the custom css.
Where do I disable the current loadable fonts from Google?
Hey Xinspirit,
The following code in functions.php will remove the Google Fonts inclusion:
add_action( 'init', 'enfold_customization_switch_fonts' );
function enfold_customization_switch_fonts() {
global $avia;
$avia->style->print_extra_output = false;
}
Best regards,
Mike
Dear Mike
Thank you for the code which I added in the functions.php.
I also imported successful the fonts ‘Open Sans, Lato and Poppins’.
But after reloading the page (see private) the fonts still get loaded from Google (console).
Hi,
You can now upload fonts in Enfold theme options > Import & Export tab – https://kriesi.at/documentation/enfold/typography/#how-to-upload-custom-fonts. Then you should choose those from the bottom of fonts list to load them locally :)
Best regards,
Yigit