Setting type on your site shouldn’t feel like guesswork. WordPress typography best practices come down to a few habits: register a small set of fonts, use fluid sizes, and expose only the controls your users need.
This guide is part of the series on how to design a wordpress website, and it relies on public WordPress documentation rather than hands-on testing.
| Item | Value |
|---|---|
| Fluid font sizes debuted in | WordPress 6.1 |
| Units fluid sizes work with | px, em or rem units |
| CSS function that powers fluid sizes | clamp() |
| Editing font size presets in the Styles interface | WordPress 6.7 |
Figures come from the WordPress core team’s fluid font sizes post and its font management post. They can change with new releases, so check the sources before you rely on them.
Start with a small set of font families
WordPress lets you register as many font families as you want, according to the theme handbook. That freedom is not a reason to use them all, because every extra family makes a design harder to keep consistent.
The handbook describes two kinds of font you can add:
- System fonts are those that live on the visitor’s computer.
- Web fonts are custom fonts bundled with your theme.
The same page calls system fonts the more straightforward route, since you only need to know which fonts you want. Its worked example pairs a primary transitional serif stack with a secondary system UI font, which is a sensible model: one family for reading, one for interface text.
How should you register fonts in theme.json?
Fonts live under settings.typography.fontFamilies in theme.json, and the handbook notes that this property is an empty array by default. Each entry is a font family object.
- Open your theme’s theme.json and find the typography settings.
- Add a font family object with a name, a slug and a fontFamily value. The handbook marks all three as required.
- Set fontFamily to a font stack, which is a list of families the browser will try in order.
- Add the optional fontFace property only when you bundle custom web fonts with your theme.
WordPress turns each slug into a CSS custom property in the form –wp–preset–font-family–{slug}, so you can reuse the font anywhere. Choose semantic slugs such as primary and secondary rather than the font’s own name, because the handbook says this keeps your setup future proof when you switch child themes, style variations or whole themes.
Make font sizes fluid so text adapts to every screen
Fluid typography lets text grow or shrink with the screen instead of jumping at fixed breakpoints. The core team’s post says fluid font sizes made their debut in WordPress 6.1, so they let font sizes grow larger as the viewport width increases and smaller as it decreases, as covered in the fluid font sizes post.
Under the hood, WordPress converts sizes into a clamp() function. According to the same post, that function contains an upper, lower and preferred font size, and the preferred value adjusts to the viewport width.

There is one limit to plan around. Fluid font sizes only work where a size is defined in px, em or rem units, so avoid other units for body and heading sizes if you want them to scale.
The feature began as a plugin experiment. The theme team’s testing call says Gutenberg 13.8 introduced the first version, and as of that August 15, 2022 post the settings.typography.fluid switch was off by default.
Limit the typography controls you expose
Theme.json can switch individual typography controls on or off in the editor. The handbook’s advice is to enable only the features your theme’s users will need, so a client who just wants to change font size isn’t buried in options.
A few controls deserve a second look:
- Custom line height has no presets, so enabling it gives users a completely custom input.
- Drop caps only work for Paragraph blocks.
- Font size, weight and style are the settings most visitors will actually notice in a post.
Be careful with drop caps in particular. The handbook calls the current implementation notoriously buggy with different font families, font sizes and line heights, so test them in your design or leave the option off.
Use the editor’s typography tools for presets
Font management moved closer to the editor in late 2024. The October 8, 2024 core post announced improvements for WordPress 6.7, including the ability to create, edit, remove and apply font size presets in the Styles interface.
The same post says individual font sizes may opt out of fluid typography when it is turned on globally, and the reverse also holds. It also says the Font Library now groups fonts by source, so you can see at a glance where each one comes from.
Once your presets are set, they carry across every page you build. If you plan a campaign page, read how to create a landing page in wordpress to see where headings and body sizes get used. The same type choices also shape the first screen visitors see, which is covered in how to create a custom homepage in wordpress.
Frequently asked questions
Do I need web fonts, or are system fonts enough?
Show answer
System fonts can carry a whole design, and they require no font files at all. Reach for web fonts when you want a brand typeface that visitors’ devices may not include.
Is fluid typography switched on automatically?
Show answer
Not in the early version. The theme team’s August 15, 2022 testing post described settings.typography.fluid as default false, so a theme has to opt in; check the testing post and the current handbook for any change.
Can I use pixel values for fluid sizes?
Show answer
Yes. The core team’s fluid font sizes post lists px alongside em and rem as supported, though it encourages relative sizes.
Should I leave drop caps enabled for my clients?
Show answer
Only if you have checked them against your chosen fonts. If you haven’t, switch the dropCap setting off in theme.json so clients don’t stumble into a broken layout.



