wordpress snippets last updated   : January 29, 2015
we now have 646 snippets

Force dashboard to display a single column only

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will force the wordpress admin dashboard to display in a single column only.

snippet :  PHPcopy
function single_screen_columns( $columns ) {
    $columns['dashboard'] = 1;
    return $columns;
add_filter( 'screen_layout_columns', 'single_screen_columns' );

function single_screen_dashboard(){return 1;}
add_filter( 'get_user_option_screen_layout_dashboard', 'single_screen_dashboard' );
source →

Did you like this post? If so please share it with your friends. Thanks!