ASHISH KANAJARIYA0%Preparing your experience
Skip to content

WordPress Font Library: How to Add, Manage and Optimize Fonts in WordPress 7

Close-up of serif typography letters, representing fonts managed in the WordPress Font Library

Typography shapes how people feel about a website before they read a single word. The right fonts make content inviting and easy to read, and they carry your brand’s personality across every page. Managing fonts in WordPress used to mean editing CSS, adding stylesheet links or installing a dedicated plugin. Today, the WordPress Font Library gives you a built-in, visual way to upload, install and manage fonts directly from the dashboard. Since WordPress 7.0, it lives under Appearance → Fonts and works with classic themes as well as block themes. This guide walks you through everything: how the Font Library works, how to add fonts, how to apply them, and how to keep your typography fast, accessible and legally sound.

Wooden typesetting letters in a tray, representing a collection of font families

What Is the WordPress Font Library?

The Font Library is a central place to manage the fonts available on your site, much like the Media Library manages images. It was introduced in WordPress 6.5 for block themes, where it was reached from the Site Editor’s Styles panel. According to the official Font Library documentation, it lets you upload your own font files or connect to Google Fonts and manage everything in one place.

WordPress 7.0 took the next step. It added a dedicated font management screen under Appearance → Fonts and made it available to classic and hybrid themes too. That means almost every WordPress site can now manage fonts the same way.

The three tabs

The Font Library is organised into three tabs:

TabWhat it does
LibraryLists fonts provided by your theme and fonts you have installed, with their variants
UploadAdds font files from your computer
Install FontsBrowses font collections such as Google Fonts and installs selected families

Why Use the Font Library Instead of Other Methods?

There are several ways to add fonts to WordPress, and each has its place. The Font Library has some clear advantages for most site owners:

  • No code required. You choose fonts visually and apply them through the editor or your theme’s typography settings.
  • Fonts are hosted on your own site. When you install a Google Font through the Font Library, the font files are downloaded and stored on your server. Visitors’ browsers load them from your domain, which supports privacy compliance and removes an extra connection to a third-party server.
  • Variant control. You can activate only the weights and styles you actually use, which keeps pages lighter.
  • Consistency. Fonts appear in the same typography controls across the editor, so every author picks from the same approved set.

How to Open the Font Library

The location depends on your WordPress version:

  • WordPress 7.0 and newer: go to Appearance → Fonts. This works with classic, hybrid and block themes.
  • WordPress 6.5 to 6.9 with a block theme: go to Appearance → Editor → Styles → Typography and click the Manage fonts icon.

If you are not sure which version you are running, check the “At a Glance” widget on your dashboard or Dashboard → Updates. Keeping WordPress up to date is the best way to get the newest Font Library features.

How to Upload Your Own Fonts

If you have licensed a font or your brand uses a specific typeface, you can upload it directly:

  1. Go to Appearance → Fonts and open the Upload tab.
  2. Click Upload font and select your files. Supported formats are .ttf, .otf, .woff and .woff2.
  3. Switch to the Library tab, find the new family and expand it to see its variants.
  4. Make sure the variants you need (for example Regular, Italic and Bold) are active.

Wherever possible, upload .woff2 files. WOFF2 is a compressed format designed for the web and is usually much smaller than TTF or OTF files, which helps your pages load faster.

A note on font licences

Before uploading a font, check that its licence allows web use (sometimes called “web embedding”). Many fonts, including all fonts on Google Fonts, are released under open licences such as the SIL Open Font License that permit this. Commercial fonts often have a separate web licence. A quick check keeps your site on solid ground.

How to Install Google Fonts Locally

Google Fonts offers a large collection of open-source typefaces. The Font Library can install them in a privacy-friendly way:

  1. Go to Appearance → Fonts and open the Install Fonts tab.
  2. The first time, WordPress asks for permission to connect to Google Fonts. Click Allow access to Google Fonts. You can revoke this permission at any time.
  3. Search for a font family, such as “Inter” or “Lora”.
  4. Select the variants you want and click Install.

WordPress downloads the selected files to your site, so after installation your pages do not request anything from Google’s servers. This is particularly helpful for sites that serve visitors in regions with strict privacy regulations.

Close-up of serif typography letters, representing fonts managed in the WordPress Font Library

How to Apply Fonts to Your Site

Installing a font makes it available. Applying it decides where it is used.

With a block theme

  1. Go to Appearance → Editor and open Styles.
  2. Choose Typography.
  3. Select the element you want to change, such as Text, Headings, Links, Buttons or Captions.
  4. Pick the font family, then adjust size, weight, line height and letter spacing.
  5. Click Save.

You can also set fonts for individual blocks in the block settings sidebar, or apply them to specific block types through Styles → Blocks. For consistency, set global choices first and only override individual blocks when there is a clear reason.

With a classic theme

From WordPress 7.0, classic themes can use the Font Library to install and manage fonts. How you apply them depends on the typography options your theme provides. Many themes include a Typography section under Appearance → Customize where you can choose or type a font family name. Use the family name exactly as it appears in the Font Library, including spaces, for example Playfair Display. If your theme does not offer typography settings, a few lines of CSS in Appearance → Customize → Additional CSS will do the job:

body {
    font-family: 'Inter', sans-serif;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

Adding Fonts with theme.json (for Theme Developers)

If you build block themes, you can bundle fonts with your theme using theme.json. Fonts registered this way appear in the Font Library’s Library tab alongside installed fonts:

{
    "$schema": "https://schemas.wp.org/trunk/theme.json",
    "version": 3,
    "settings": {
        "typography": {
            "fontFamilies": [
                {
                    "name": "Inter",
                    "slug": "inter",
                    "fontFamily": "Inter, sans-serif",
                    "fontFace": [
                        {
                            "fontFamily": "Inter",
                            "fontStyle": "normal",
                            "fontWeight": "300 900",
                            "src": [ "file:./assets/fonts/inter-variable.woff2" ]
                        }
                    ]
                }
            ]
        }
    }
}

WordPress generates the @font-face rules for you. If you are planning to move a classic theme to this model, our guide on how to convert a classic theme to a block theme covers theme.json in more detail.

Choosing the Right Font Pairing

With thousands of fonts only a few clicks away, choosing can feel overwhelming. A few simple principles make the decision easier.

Start with your content and audience

A legal firm, a children’s bookshop and a technology blog each need a different personality. Think about the tone you want readers to feel: trustworthy, friendly, modern, elegant or playful. Then look for typefaces with that character. Serif fonts such as Lora or Merriweather often feel classic and editorial, while sans-serif fonts such as Inter or Open Sans feel clean and contemporary.

Pair contrast with harmony

A classic approach is to pair a distinctive heading font with a calm, highly readable body font. For example, a serif heading with a sans-serif body creates gentle contrast while keeping long paragraphs comfortable to read. Alternatively, use a single versatile family in different weights for a very consistent, modern look.

Check readability at real sizes

Fonts that look stunning in a large preview can be harder to read at body size on a small phone screen. Before committing, set the font on a real article with headings, lists, links and captions, and read it on a mobile device. Pay attention to how easily you can distinguish similar characters such as “I”, “l” and “1”.

Confirm language support

If your site publishes in more than one language, make sure the fonts include the characters you need, such as accented Latin letters, Devanagari or Cyrillic. Google Fonts shows the supported languages for each family, and many fonts offer separate subsets you can choose to keep files small.

Font Performance Best Practices

Fonts are part of your page weight and can affect Core Web Vitals. A few habits keep typography fast.

Use two font families at most

A common and effective pattern is one family for headings and one for body text. Each extra family adds files to download and makes the design feel less cohesive.

Activate only the variants you need

Each weight and style is usually a separate file. If your design uses Regular, Italic and Bold, there is no need to load Thin, Light, Medium, Semibold and Black as well. Review the Library tab and deactivate unused variants.

Consider variable fonts

A variable font packs a whole range of weights (and sometimes widths) into a single file. If you use three or more weights of the same family, one variable font file is often smaller than several static files. Notice the "fontWeight": "300 900" range in the theme.json example above: that is how a variable font is registered.

Keep fonts local

Local hosting avoids an extra connection to another server, which can shorten the time before text appears. The Font Library already does this for installed fonts, and fonts are stored in your uploads folder (wp-content/uploads/fonts by default).

Prevent layout shifts when fonts load

When a web font replaces a fallback font with different measurements, text can reflow and move other content. WordPress’s font handling outputs a font-display value in its @font-face rules so text stays visible while fonts load. To minimise movement, choose a fallback font with similar proportions and consider metric overrides such as size-adjust. Our WordPress CLS optimization guide explains these techniques step by step, and our LCP optimization guide covers how fonts influence how quickly your main content appears.

Typography and colour test chart used to check how fonts render

Typography and Accessibility

Beautiful fonts are only useful when everyone can read them. Keep these accessibility basics in mind:

  • Body text size. A body size of around 16 pixels or larger is comfortable for most readers. Use relative units such as rem so visitors’ browser settings are respected.
  • Line height. A line height of about 1.5 for body text improves readability, and WCAG’s text spacing guidance expects content to remain usable when users increase spacing.
  • Contrast. Thin, light font weights can reduce contrast. Check that your text colour against its background meets WCAG contrast requirements.
  • Legible letterforms. Decorative or script fonts work well for short headings, but body text deserves a clear, open typeface.

For a full accessibility review, see our WCAG 2.2 checklist for WordPress.

Removing Fonts You No Longer Need

Over time, sites can collect fonts that are no longer used. To remove one, go to Appearance → Fonts, open the Library tab, select the font and choose to delete it. Before deleting, check that no templates, blocks or theme settings still reference it, otherwise the browser will fall back to the next font in the stack. Fonts provided by your theme cannot be deleted from the Library, but you can choose not to use them.

Troubleshooting Common Font Library Questions

I do not see Appearance → Fonts

You are probably running a WordPress version earlier than 7.0. Update WordPress, or, if you use a block theme on 6.5 to 6.9, use Appearance → Editor → Styles → Typography → Manage fonts.

My uploaded font does not appear in my theme’s font list

With a classic theme, the font list in the Customizer is controlled by the theme. Try typing the family name directly if the theme allows it, or apply the font with Additional CSS as shown above.

A font looks different in the editor and on the front end

Clear any caching plugin or server cache after changing fonts, then reload the page. Also check that the same variants (for example Bold) are active, because the browser may otherwise simulate bold or italic styles.

Can I use Adobe Fonts or other services?

The Font Library focuses on uploaded fonts and font collections such as Google Fonts. Other services usually provide their own embed code, which you can add through your theme or a plugin. If your licence allows self-hosting, uploading the files to the Font Library keeps everything in one place.

Conclusion

The WordPress Font Library has made professional typography accessible to every site owner. In WordPress 7.0 and newer, you can open Appearance → Fonts, upload a licensed font or install a Google Font locally, and apply it through the Site Editor or your theme’s settings, all without code. Choose two complementary families, activate only the variants you need, prefer WOFF2 or variable fonts, and pair everything with sensible fallbacks to keep pages fast and stable. Your content will look polished, load quickly and read comfortably for every visitor.

Leave a Reply

Your email address will not be published. Required fields are marked *