Load Google Fonts async
Support Forum » Empireii WordPress Theme
8 months agoHello Denise!
In theory you just have to comment out the current font loadings and paste your script.
Comment out line #14,15 in style.css like this:
/* @import url(http://fonts.googleapis.com/css?family=PT+Sans+Narrow); @import url(http://fonts.googleapis.com/css?family=PT+Sans); */
If you added extra fonts in Theme Options - Typography then comment out line #749 in theme.php:
Paste your script in the footer.php right before the closing body tag or in header.php before the closing head tag. You can experiment with where it goes.
Extra article to help: https://www.lockedowndesign.com/load-google-fonts-asynchronously-for-page-speed/
8 months agoHello,
I would like to load all Google Fonts async for Google Page Speed.
I found the place where it loads the Fonts forst, but I don´t know how to fix the Problem.
The theme loads all Fonts in theme.php from Line 414.
Can you please tell me where I can put the Code so I can load the Google Font async?
Thank you very much!