Tagged: 

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

    I would like to remove the Google Web Font API entirely and instead put a minified version into my own styles.css

    What is the best way to go about doing this?

    Here is the contents of the Google font file I am using, which I have now inserted into my style sheets.

    @font-face {
      font-family: 'Open Sans';
      font-style: normal;
      font-weight: 400;
      src: local('Open Sans'), local('OpenSans'), url(https://themes.googleusercontent.com/static/fonts/opensans/v6/cJZKeOuBrn4kERxqtaUH3T8E0i7KZn-EPnyo3HZu7kw.woff) format('woff');
    }
    @font-face {
      font-family: 'Open Sans';
      font-style: normal;
      font-weight: 600;
      src: local('Open Sans Semibold'), local('OpenSans-Semibold'), url(https://themes.googleusercontent.com/static/fonts/opensans/v6/MTP_ySUJH_bn48VBG8sNSnhCUOGz7vYGh680lGh-uXM.woff) format('woff');
    }
    #206003

    Hi Imburr!

    You would just need to not choose a google font from the dropdown selection in the styling options.

    Cheers!
    Devin

    #495796

    yes when we need to use good Google Fonts.

    I use fonts.com for several Clients and need to deactiveate the loading of Google fonts via avia completetly

    #495799

    Hi!

    Please add following code to Functions.php file in Appearance > Editor

    add_action( 'init', 'enfold_customization_switch_fonts' );
    function enfold_customization_switch_fonts() {
        global $avia;
        $avia->style->print_extra_output = false;
    }

    Cheers!
    Yigit

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.