# Turn On Modern Block Features in Classic Themes

> Enables wide and full alignments, responsive embeds, spacing, border, line height and link color controls for classic themes that never declared them.

- Type: PHP
- Runs: Run everywhere
- Category: [Block Editor](https://wpide.com/library/category/gutenberg/)
- Tags: classic-themes, alignments, blocks
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/modern-block-features-classic-themes/

## Code

```php
add_action( 'after_setup_theme', function () {
    if ( wp_is_block_theme() ) {
        return;
    }

    foreach ( array( 'align-wide', 'responsive-embeds', 'custom-spacing', 'custom-line-height', 'custom-units', 'link-color', 'border', 'appearance-tools' ) as $feature ) {
        add_theme_support( $feature );
    }
}, 20 );
```

## Notes

Your theme's CSS decides how wide alignments look; test a few pages after enabling it.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Turn On Modern Block Features in Classic Themes" 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/
