Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #820768

    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?

    • This topic was modified 7 years, 4 months ago by Xinspirit.
    #821868

    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

    #1008926

    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).

    #1009046

    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

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.