Tagged: 

Viewing 6 posts - 1 through 6 (of 6 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

    #698962

    If I want to use ‘Open Sans’ but want to serve the font from my server via a CDN.
    I add the CSS to the additional CSS section in the theme
    If I choose not to use the font in the theme setting that will not work.
    So how do I tell the theme to use ‘Open Sans’ but not to load the theme call to pull the Google API Font

    #699001

    Hi,

    If the path of the font is correct it should load the self hosted font files just fine.

    If you have any issue please open a new ticket and post the login credentials so we can take a closer look at it.

    Best regards,
    Vinay

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Remove Google Web Font’ is closed to new replies.