
Tagged: Fonts
-
AuthorPosts
-
January 6, 2014 at 10:19 pm #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'); }
January 6, 2014 at 10:26 pm #206003Hi Imburr!
You would just need to not choose a google font from the dropdown selection in the styling options.
Cheers!
DevinAugust 31, 2015 at 2:19 pm #495796yes 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
August 31, 2015 at 2:21 pm #495799Hi!
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!
YigitOctober 14, 2016 at 4:55 am #698962If 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 FontOctober 14, 2016 at 7:42 am #699001Hi,
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 -
AuthorPosts
You must be logged in to reply to this topic.