Using Google Fonts in WordPress (5 Tips for Optimizing Performance)

Last Updated on November 5, 2026 by 8 Comments

Using Google Fonts in WordPress (5 Tips for Optimizing Performance)
Blog / WordPress / Using Google Fonts in WordPress (5 Tips for Optimizing Performance)

Google Fonts gives your WordPress site a wide choice of typefaces. The way you add them affects which files visitors download and where those requests go.

These five tips show how to choose, add, and check fonts in WordPress and Divi.

1. Use Fewer Font Families And Variants

Start with one family for body text and, if needed, another for headings. Choose the weights and italics your design uses. The files loaded depend on your setup.

A variable font can contain a range of weights in one file. That can reduce the number of separate files needed, though its size and benefit depend on the font and the page. Check the real requests instead of assuming one format is always faster.

Choosing only the font styles a page uses

2. Install Google Fonts Locally With WordPress

Download A Font From Google Fonts

Visit Google Fonts and open a font family, such as Inter. Review its styles and the license information before using it.

Inter specimen page on Google Fonts

Select Get font to add the family to your selection. On the selection screen, choose Download font for that family or Download all for the collection. If the download arrives as a ZIP, extract it before choosing a font file.

Downloading a selected family from Google Fonts

Upload A Downloaded Font

In WordPress 7.0 or later, open Appearance > Fonts and choose the Upload tab. The Font Library supports .ttf, .otf, .woff, and .woff2 files.

WordPress native font upload panel

Select a font file from your computer and complete the upload. WordPress displays a confirmation when the font installs. Check the Library tab for the uploaded font.

Inter uploaded successfully in WordPress

With a block theme, open Appearance > Editor > Styles > Typography. Under Elements, choose Text, then select your uploaded family in the Font control. For Inter, choose Regular under Appearance.

Selecting Inter regular for global text

Review the change and click Save. WordPress confirms the save; visit the site to check the result. Theme controls and existing block-level settings can affect where the font appears.

Install A Family Directly In WordPress

The WordPress Font Library can install Google Fonts and store the selected files on your site. WordPress 7.0 and later makes the library available with block and classic themes. After installing a family, apply it using the controls in your theme or editor.

  1. In the WordPress dashboard, open Appearance > Fonts.
  2. Choose Install Fonts, then allow access to Google Fonts when prompted.
  3. Search for a family such as Roboto and select it.
  4. Choose the variants you need. For example, select 400 normal and 700 normal for regular and bold text.
  5. Click Install. Check the success notice and the Library tab.

Choosing Roboto regular and bold in WordPress

With a block theme, the installed family also appears in the Site Editor’s Typography controls. Apply it using the same steps above; individual blocks can have their own typography settings.

With a classic theme, use the typography controls supplied by the theme or a compatible plugin. Their locations vary; the Font Library does not guarantee that every classic theme exposes a selector for its fonts. Divi Builder modules have their own font picker, covered below. Check the resulting page rather than assuming a WordPress library selection controls every builder module.

3. Check Where Font Requests Go

WordPress downloads fonts installed through its Font Library to your site. A theme, plugin, embedded widget, or separate stylesheet can still request other fonts from Google. Local hosting removes the Google request for the files served locally; it does not prove that the whole page makes no third-party requests or determine your legal obligations.

To check a page, open it in a private browser window, open your browser’s developer tools, and select the Network panel. Reload the page and filter for Font; also search the request list for fonts.googleapis.com and fonts.gstatic.com. Inspect the request domains and check key templates, including pages with embeds. Clear site and browser caches after changes, then repeat the check.

Compare page speed before and after a change. Local hosting can remove a third-party connection, but the result also depends on caching, file size, hosting, and delivery. It is not a guarantee of a faster page.

Comparing local and Google hosted font delivery

If an existing theme or plugin loads Google Fonts remotely, a tool such as OMGF can help download and serve detected fonts locally. Its coverage depends on the source and configuration, so check its documentation and test the pages you use. Clear caches after a change and inspect the Network panel again; a plugin cannot guarantee that every external request is gone.

4. Preload Only A Critical Font

A preload asks the browser to fetch a resource early. It can help when a critical font is discovered late, but preloading files that a page does not need can compete with other important resources. Start with the font used for prominent text near the top of the page and measure the result.

If your theme, host, or optimization plugin provides a font preload setting, use the exact URL of the file the page already requests. Avoid adding a second copy through another optimization tool. For a manually added font preload, the URL, font format, and cross-origin setting must match the actual font request. A preload for a stylesheet is different from a preload for a font file.

For example, this HTML preloads a local WOFF2 file. Add it to the page head only if that exact file is used for critical text:

<link rel="preload" href="/fonts/example-regular.woff2" as="font" type="font/woff2" crossorigin>

Replace the example path with the actual font URL from the Network panel. This hint does not install or apply a font; the page still needs a matching font declaration. Measure before keeping it.

Also check how text appears while fonts load. A fallback font can show text sooner, but the change to the web font may shift the layout. Test on a slower connection and choose a fallback with similar proportions when possible.

5. Choose Google Fonts In Divi

Divi 5 includes Google Fonts in its text styling controls. Open a text-based module’s settings in the Visual Builder, choose Design, and open the Text option group. Choose a family from Text Font, then save the page. The font picker also supports custom font uploads.

Divi 5 text design options

To reuse a font across a design, open the Visual Builder’s Variable Manager and expand Fonts. Create a named font variable, choose a family, and save the variables. Apply that variable to the font fields where you want to use it; changing the variable updates the fields that reference it. For example, you can create separate Heading and Body font variables.

Divi 5 global variable types

In Divi > Theme Options > General, Use Google Fonts controls their availability in Divi Builder pages. Turning it off can change existing text, so check the site after changing it. WordPress Font Library installs and Divi font selections are separate workflows; use the Network panel to verify how your particular page delivers its files.

Test Your Font Setup

Choose a small set of families and styles, apply them through the controls your site uses, and inspect the resulting requests. Then compare page performance and check the text on a phone. These checks give you a clearer answer than adding every available optimization at once.

Divi

Want To Build Better WordPress Websites? Start Here! 👇

Take the first step towards a better website.

Get Started
Divi
Premade Layouts

Check Out These Related Posts

WordPress vs EmDash (2026): Which Fits Your Next Site?

WordPress vs EmDash (2026): Which Fits Your Next Site?

Posted on November 10, 2026 in WordPress

EmDash is an open-source content management system from Cloudflare, built in TypeScript on the Astro framework. Cloudflare introduced it as a spiritual successor to WordPress, and version 1.0 marked its first stable release. This article compares EmDash with WordPress based on the kind of site you...

View Full Post
WordPress vs Astro (2026): Which One Fits Your Next Site?

WordPress vs Astro (2026): Which One Fits Your Next Site?

Posted on October 25, 2026 in WordPress

WordPress and Astro can both power a blog, portfolio, or business website, but they give you different starting points. WordPress includes a content management system with an editing dashboard, user accounts, and a media library. Astro is a web framework that lets developers build the front end and...

View Full Post
What Is A Theme Builder? Site Building With WordPress

What Is A Theme Builder? Site Building With WordPress

Posted on August 27, 2026 in WordPress

You build the homepage first. Then an about page, then a contact page. By the third one, you have the rhythm of it: drop in a section, add your content, style it, publish. One page, one design. Then you get to the blog. The rules change without warning. You are not designing a page anymore. You are...

View Full Post

8 Comments

  1. There was a new verdict in eu, that using google fonts via Google Servers is not allowed anymore. So you need to upload it locally. Its sad to see, that this is still overly complicated with divi! In Elementor its just a click. I hope divi makes this easier soon otherwise this will be a lot of work.

  2. Google font error was coming in my website too but in your post you have told about the wordpress plugin omgf. After doing this, this problem has been solved. And my Google page speed has also become good.

  3. If you’re using the Divi theme and have “Improve Google Fonts Loading” and “Limit Google Fonts Support For Legacy Browsers” enabled, is it still advantageous to use Optimize Google Fonts?

    • Same question here.
      I think this post is written too simple to know how to use Google fonts correctly and to not run into speed problems.

      For example Google Fonts use in the modules – isn’t there a global setting? Do we have to define that in every module – no explanation is delivered.

  4. This is a timely topic for me, but the missing words makes it hard for me to trust the info. The two I noticed were:
    “To use them, don’t reference the third-party font host in the ____ of your pages.” and
    “You’d load the font’s family and stylesheet with HTML to the ____ of your website.” I’d sure like to see the complete sentences…

    • It should be good now, Kelly. Sorry about that, and thanks for letting us know. Both of the blanks were references to the head of the website, and WordPress didn’t like that we didn’t put a space in and decided to leave the whole thing out. Again, sorry and thanks!

    • Thanks for pointing that out Kelly! We’ll get it fixed!

  5. Thanks Randy, an interesting article.
    If we use a google font that is a variable font, I assume that it does not load all the weights right?
    Or if I’m wrong is there an article where I could find out more about variable fonts and how they are loaded?
    Thanks!

Leave A Reply

Comments are reviewed and must adhere to our comments policy.

Get Started With Divi