How to Change Font Size in WordPress (Blocks, Themes & CSS)
To change font size in WordPress, select the Paragraph or Heading block and open Typography > Font size in the block sidebar. Pick a preset (Twenty Twenty-Five offers S, M, L, XL and XXL), or click the custom-size icon to type an exact text size. I tested these steps on WordPress 7.1.3 with the Twenty Twenty-Five theme. For a site-wide change, use the theme’s typography styles. Start by deciding which text should change so a small formatting edit doesn’t affect your entire site.
Choose the right scope
One paragraph or heading: edit that block’s Typography settings. All body text or headings: use your theme’s global styles. A page title above the content: check the template or theme settings that render the title. A widget: distinguish the size of the text from the size of the box containing it.
A paragraph in the page editor and a title supplied by the theme can use different rules. If changing the paragraph has no effect on the title, you’re probably editing the wrong element. Our title formatting guide explains the difference between a page title, a site title, and a heading inside your content.
Change a paragraph or heading in the block editor
- Open the post or page and select the Paragraph or Heading block. Use List View to select the correct block if it sits inside a Group or Columns block.
- Click Settings at the top right of the editor to open the block sidebar, then find Typography > Font size. Font size shows by default for Paragraph and Heading blocks. If it’s missing, check in List View that you selected the text block and not a Group around it.
- Choose a preset. In Twenty Twenty-Five the presets are S, M, L, XL and XXL. For an exact size, click the custom-size icon next to Font size. The field shows the current value, such as 1.38 rem for L. Type a bigger number, such as 1.5, or drag the slider to increase the text size.
- Preview the page and check the text beside nearby paragraphs, links, and headings. Save when the result is readable at both wide and narrow widths.


Picking L on my test paragraph changed nothing visible, because Twenty Twenty-Five already uses L for normal text. If a preset seems to do nothing, it’s probably the size the theme already uses, so pick the next size up.
Control names and available units depend on the WordPress version, theme, and block. A theme can supply named sizes or restrict custom values. The official Typography settings reference describes these controls.
Change typography across a block theme
Open Appearance > Editor > Styles > Typography and choose Text under Elements to set the default size of body text, or Headings for headings. Save when you’re done. To change one block type everywhere, go back to Styles, open Blocks and select the block, such as Paragraph or Heading. WordPress documents the distinction in its Styles overview.

Before saving, check the scope of the change. A shared heading style can affect many pages. Individual blocks with their own size overrides may keep those overrides instead of adopting a new default. Reset an individual block’s custom size when you want it to follow the shared style again.
Avoid choosing a size only because another website uses it. Your font, line length, spacing, and audience affect readability. Compare a real long paragraph, a short heading, and a multi-line title in your own layout.
Change font size in a classic theme or Classic Editor
If you have Appearance > Customize, inspect your theme’s Typography, Fonts, or similar panel. These are theme features, so there’s no universal menu path beyond the Customizer. Some themes offer body and heading sizes; others require custom CSS.
The Classic Editor doesn’t include a font-size dropdown by default. The Paragraph/Heading selector changes the meaning of the text as well as its appearance. Don’t turn body copy into a heading just to enlarge it. An existing formatting plugin may expose more controls, but you don’t need to install one for a small, targeted CSS change.
If you work in the Classic Editor’s Text/HTML view, a paragraph can carry a class such as <p class="htwp-reading-text">Your paragraph.</p>. Keep its other markup intact. In the block editor, use the block’s Advanced settings instead of manually replacing block markup.
Use CSS for one text block
Add htwp-reading-text under the block’s Advanced > Additional CSS class(es), without a dot. Put the rule below in your theme’s supported custom CSS area. Classic themes commonly provide Appearance > Customize > Additional CSS; on block themes, go to Appearance > Editor > Styles, open the More (⋮) menu and choose Additional CSS. Don’t put bare CSS in a paragraph or in functions.php.
.htwp-reading-text {
font-size: 1.125rem;
line-height: 1.6;
}
The rem unit is relative to the root element’s font size. With a 16px root, 1.125rem computes to 18px; with a 20px root, it computes to 22.5px. It isn’t always equal to 18px. The unitless line height scales with the resulting font size. See the CSS length reference for unit behavior.
To format paragraphs inside one Group, give that Group a distinct class and target its paragraphs. This example intentionally affects all paragraphs inside that group, including nested ones:
.htwp-article-copy p {
font-size: 1.125rem;
line-height: 1.6;
}
A broad rule such as p { font-size: ... } can also affect footer text, forms, or other components. Keep a copy of your original CSS and remove only your new rule if you need to undo it. Test larger template changes on a staging site.
Keep heading levels meaningful
Choose H2 for a main section and H3 for a subsection within it when that matches your document structure. Adjust the heading’s visual size separately. Changing H2 to H5 only to make it smaller gives the document an unnecessary jump in heading hierarchy.
Your theme’s template usually adds the post title, so you don’t need another copy in the content. Clear structure helps readers navigate, but no font size or heading level guarantees a search ranking.
Troubleshoot a font size that won’t change
The public page still looks old: save the correct post, template, or style, then refresh. Clear the affected page’s cache if an older version remains. Only some words differ: check nested spans or link rules. The rule has no effect: inspect the element and confirm your class matches; another rule or inline style may take precedence. Don’t add !important before checking the cause.
Text is clipped on mobile: inspect fixed heights, narrow columns, and overflow settings. Increase the available space or let the container grow. Use browser zoom as well as a narrow preview to check that headings, buttons, and paragraphs remain usable.
If the text sits in a sidebar or footer, follow our widget-size guide to adjust the container separately. For emphasis, our underline guide covers another formatting option; use underlines carefully because readers often expect them to identify links.

