Blogging & content · Guide
How to Change the Font in WordPress (Whole Site or One Block)

Short answer
To change the font across a WordPress block theme, go to Appearance > Editor > Styles > Typography, pick an element such as Text or Headings, and choose a font family, adding new fonts with the Font Library if needed. To change one block, select it and use the Typography settings in the sidebar. Classic themes use Appearance > Customize instead.
Key takeaways
- Block themes set site-wide fonts in Styles > Typography, separately for text, headings, links and buttons.
- The Font Library lets you install new fonts or upload font files without code.
- Single blocks can override the site font in their own Typography settings.
- Classic themes usually offer font options in Appearance > Customize or theme settings.
- Use two fonts at most, self-host them where possible, and load only the weights you need.
Where do you change fonts in WordPress?
Where you change fonts depends on your theme type: block themes use the Site Editor's Styles panel, while classic themes use the Customizer or their own options page.
Check your theme type under Appearance. If you see Editor, it is a block theme. If you see Customize, it is a classic theme.
| What you want | Block theme | Classic theme |
|---|---|---|
| Site-wide body font | Styles > Typography > Text | Customize > Typography, if the theme has it |
| Heading fonts | Styles > Typography > Headings | Customize or theme options |
| One paragraph or heading | Block settings > Typography | Limited; use a class and CSS |
| Add a new font | Font Library | Theme options, a font plugin or CSS |
| Font sizes across the site | Styles > Typography | Customize or CSS |
How do you change the site-wide font in a block theme?
Go to Appearance > Editor > Styles, open Typography, choose an element such as Text or Headings, pick a font family and size, then save.
Step by step:
- Go to Appearance > Editor
- Click Styles, then the style book or the edit icon to open style settings
- Choose Typography
- Select Text to change body text, or Headings for all headings, or a single heading level
- Pick a font from the Font dropdown and adjust size, line height and weight
- Click Save
These settings apply everywhere the theme uses that element, including posts, pages and templates. The Styles overview documentation explains how global styles work.
If a page still shows the old font, a block on it may have its own typography settings that override the global style.
How do you add a new font with the Font Library?
Open Styles > Typography, click the option to manage fonts, then install a font from the font collection or upload your own font files and activate it.
The Font Library arrived in WordPress 6.5 and is explained in the Font Library announcement on Make WordPress Core. It lets you add fonts site-wide without touching theme files.
Uploaded fonts are stored on your own site, which helps with privacy and speed. Choose the WOFF2 format when you can, since it is the smallest modern font format.
After installing, select only the styles and weights you actually use, such as regular, italic and bold. Every extra weight is another file visitors may download.
How do you change the font of a single block?
Select the block, open the block settings sidebar, find the Typography panel and choose a font, size, weight or style for that block only.
If you do not see the font family option, click the three-dot menu in the Typography panel to show more options. Themes control which typography options are available.
Use block-level fonts sparingly. A page where many blocks use different fonts looks messy and is harder to maintain. For repeated designs, change the global style or create a block style instead.
How do you change fonts in a classic theme?
Open Appearance > Customize and look for a Typography or Fonts section, or the theme's own options page; if there is none, use a font plugin or custom CSS.
Many popular classic themes include font controls for body text, headings and menus. Settings there survive theme updates, so they are the safest option.
If your theme has no font settings, a typography plugin can add them. As a last resort, add CSS in Customize > Additional CSS:
body { font-family: "Inter", system-ui, sans-serif; }
h1, h2, h3 { font-family: "Merriweather", Georgia, serif; }
CSS alone only works if the font is available. Use a system font, or load the web font through the theme, a plugin or a child theme.
How do developers set fonts in theme.json?
Register font families in theme.json under settings.typography.fontFamilies, then apply them in styles, so the fonts appear in the editor and on the front end.
Block themes describe their typography in theme.json. Adding a font there makes it selectable in the Site Editor and loads it automatically with the right @font-face rules.
The theme handbook section on typography settings shows the structure. Our guide on using theme.json covers the wider file.
Use a child theme for changes to a theme you did not build, so updates do not undo them.
How do you change font sizes and line height?
Set sizes and line height in the same Typography panel, ideally with the theme's preset sizes or fluid typography, so text scales well from phones to large screens.
Block themes usually define a set of font sizes, such as small, medium, large and extra large. Picking from these presets keeps the site consistent, and changing a preset later updates every block that uses it.
Many themes also turn on fluid typography. Font sizes then grow and shrink smoothly with the screen width, which avoids huge headings on phones and tiny text on wide monitors.
Line height matters as much as font size for readability. Body text usually reads best with a line height around 1.5 to 1.7, and headings can be tighter. Long lines are harder to read, so keep the content width moderate.
After changing sizes, check a long article on your phone. If you need to zoom to read comfortably, the body text is too small.
How do you choose fonts that fit your brand?
Start from your logo and brand guidelines if you have them, then pick a readable body font that pairs well with a heading font that carries the brand's character.
If you have a brand font for your logo, it may not work well for long paragraphs. Use it for headings or buttons and pair it with a simpler font for body text.
Test the pairing with real content, not just a sample sentence. A font that looks great in a heading can feel tiring across a two-thousand-word guide.
Keep accessibility in mind. Very thin weights, tight letter spacing and low contrast colors make text hard to read for many visitors.
How do you keep custom fonts fast?
Use one or two font families, load only the weights you need, host fonts on your own site in WOFF2 format, and preload the main text font.
Fonts can delay text from appearing or cause layout shifts while they load. The web.dev guide to font best practices explains the main techniques.
Practical tips:
- Stick to two families at most, one for headings and one for body text
- Prefer variable fonts when they replace several separate weight files
- Use font-display swap so text shows immediately in a fallback font
- Self-host fonts instead of loading them from a third-party service
Our guide on hosting Google Fonts locally walks through moving fonts onto your own server.
To make the main font appear sooner, see our guide to preloading fonts.
Why is your new font not showing?
A cache may be serving old styles, a block may override the global font, the font may not have loaded, or the theme may hard-code fonts in its CSS.
Check these in order:
- Purge your caching plugin and CDN, then reload in a private window
- Select the block and check its own Typography settings
- Inspect the text in your browser and look at the computed font-family
- Check the Network tab for a failed font file request
- Look for theme CSS that sets fonts with high specificity
Our guide on CSS changes not showing covers caching and specificity in more detail.
Which fonts work well for WordPress sites?
Choose clear, readable fonts with good language support, and pair a distinctive heading font with a simple body font.
For body text, readable sans-serif or serif fonts at 16 to 18 pixels work well on most screens. Headings can carry more personality.
Check that the font supports every language and special character your content uses. A font missing characters falls back to another font for those letters, which looks uneven.
Finally, check the license. Most fonts in the Font Library collection and in open font directories are free to use on websites, but some commercial fonts require a web license.
Frequently asked questions
How do I change the font on my whole WordPress site?
In a block theme, go to Appearance > Editor > Styles > Typography and set fonts for Text and Headings. In a classic theme, use Appearance > Customize or the theme's typography settings.
How do I add Google Fonts to WordPress?
In block themes, use the Font Library in Styles > Typography to install fonts or upload font files. In classic themes, use theme options or a font plugin. Hosting the fonts on your own site is better for speed and privacy.
Can I change the font for just one paragraph?
Yes. Select the paragraph block, open the Typography panel in the block settings, and choose a font family, size or weight for that block only.
Why can't I find a font option in WordPress?
Your theme may not enable that typography control, or it may be hidden in the panel's options menu. Classic themes without font settings need a plugin or custom CSS.
Do custom fonts slow down WordPress?
They can if you load many families or weights from external services. Use one or two families, only the weights you need, self-hosted WOFF2 files and font-display swap to keep pages fast.
Sources
- Styles Overview WordPress.org Documentation
- New Feature: Font Library Make WordPress Core
- Typography settings WordPress Theme Handbook
- Best practices for fonts web.dev
- @font-face MDN Web Docs
Is your product missing, or something out of date?
Tell us what to add or correct. We read every note and reply when we need a source. A message does not buy a ranking.
Thanks — we review requests within 3 business days.
Related guides
About the editors
Researched from the primary sources listed above and checked against our editorial rules before publishing.


