Disable Fit Text
Disables the fit text (stretchy text) feature for paragraph and heading blocks introduced in WordPress 6.9.
Last modified: March 10, 2026
Extension name
t2/disable-fit-text
Description
Disables the fit text (stretchy text) feature introduced in WordPress 6.9 for core/paragraph and core/heading blocks. This feature allows text to automatically scale to fill its container, which can be undesirable in some editorial contexts.
The extension:
- Removes the Fit text toggle from the Typography panel in the editor
- Strips the Interactivity API directives (
data-wp-interactive,data-wp-init,data-wp-context,data-wp-style--font-size) from already-saved blocks at render time, preventing the frontend script from activating - Unregisters the Stretchy Paragraph and Stretchy Heading block variations (present in WordPress 6.9, removed in 7.0 — safe no-op on 7.0+)
- Self-heals previously saved blocks by resetting the
fitTextattribute tofalsewhen they are next edited
Usage
{
"mu-extensions": ["t2/disable-fit-text"]
}