# Disable the Drop Cap Option

> Removes the drop cap toggle from the Paragraph block settings.

- Type: PHP
- Runs: Run everywhere
- Category: [Block Editor](https://wpide.com/library/category/gutenberg/)
- Tags: block-editor, typography, theme-json
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/disable-drop-cap/

## Code

```php
add_filter( 'wp_theme_json_data_theme', function ( $theme_json ) {
    return $theme_json->update_with( array(
        'version'  => 2,
        'settings' => array(
            'typography' => array( 'dropCap' => false ),
        ),
    ) );
} );
```

## Notes

Requires WordPress 6.1 or newer.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Disable the Drop Cap Option" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
