Remove the drop cap toggle and custom letter spacing, text decoration and font style controls from paragraphs.
add_filter( 'wp_theme_json_data_theme', function ( $theme_json ) {
return $theme_json->update_with( [
'version' => 3,
'settings' => [
'typography' => [
'dropCap' => false,
'letterSpacing' => false,
'textDecoration' => false,
'fontStyle' => false,
],
],
] );
} );
Always add PHP to a staging site first, or have FTP or file manager access ready, so you can undo it if something goes wrong.
Drop caps, custom letter spacing and font style overrides are easy to overuse. On sites with a set typography system, removing them keeps posts consistent.
The wp_theme_json_data_theme filter changes your theme’s theme.json settings from PHP. Turning off dropCap removes the paragraph drop cap toggle; letterSpacing, textDecoration and fontStyle remove those controls from the typography panel.
Select a paragraph and open Typography in the sidebar. The Drop cap option should be gone.