# Remove the "Sticky" Position Option From Blocks

> Hides the Position: Sticky setting from Group blocks in the editor, so editors cannot accidentally pin sections to the top of the screen.

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

## Code

```php
add_filter( 'wp_theme_json_data_theme', function ( $theme_json ) {
    return $theme_json->update_with( array(
        'version'  => WP_Theme_JSON::LATEST_SCHEMA,
        'settings' => array( 'position' => array( 'sticky' => false ) ),
    ) );
} );
```

## Notes

Blocks already set to sticky keep that setting.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Remove the "Sticky" Position Option From Blocks" 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/
