Single Column Dashboard Layout
Forces the Dashboard into a single column for every user, which suits sites with only one or two widgets.
Opens WPIDE on
Code
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 add this snippet
- Install WPIDE on your WordPress site (it is free) and open Code Snippets.
- Use snippet above adds it from the library in one click. Or copy the code into a new snippet with the same code type.
- It is added inactive: review the code and settings, then switch it on.