wordpress snippets last updated   : April 14, 2014
we now have 630 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 →
jqsnipp.com | we just launched jquery snippets website