
The ability to managed these settings is just one of the many features that you can configure with theme.json. There you have it! All you need to know about typography settings in the block editor. "typography": Code language: JavaScript ( javascript ) Closing To define custom font sizes in your theme, add the following JSON snippet under the settings key of your theme.json file. The units available to set the font sizes can be configured through the spacing setting in theme.json. If you want a font size that is not preset, you can use the font size picker. The screenshot above shows the default WordPress font size palette, which ranges from 13px to 42px. The numbers in the size selector correspond to the font size defined in theme.json, with the unit removed. The font size name (see 2) shows the name of the font size.The font size selector (see 1) allows users to select a font size.The font size selector interface element has been changed several times, and this is its current implementation in WordPress 6.0: Select from a set of predefined font sizes.Only paragraph blocks support drop caps, and they are enabled by default. This typographic style is used for the opening paragraph of a text or section to add emphasis. Controlling drop capĪ drop cap is a large capital letter. So what do these settings allow you to do? Let’s go through them. To show the other settings, you have to enable them as shown below. Only the font size selector is always present. The default is not to show all these settings.

The typography settings panel of the Paragraph block. When you select a block that supports rich text, the Block Inspector will show a Typography panel.


