# Single Column Dashboard Layout

> Forces the Dashboard into a single column for every user, which suits sites with only one or two widgets.

- Type: PHP
- Runs: Admin only
- Category: [Dashboard](https://wpide.com/library/category/dashboard/)
- Tags: dashboard, layout
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/single-column-dashboard/

## Code

```php
add_filter( 'screen_layout_columns', function ( $columns ) {
    $columns['dashboard'] = 1;

    return $columns;
} );

add_filter( 'get_user_option_screen_layout_dashboard', function () {
    return 1;
} );
```

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Single Column Dashboard Layout" 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/
