Posted By

FXDB on 12/02/11



Versions (?)

Who likes this?

2 people have marked this snippet as a favorite


Force dashboard to display a single column only

 / Published in: PHP

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

  1. function single_screen_columns( $columns ) {
  2. $columns['dashboard'] = 1;
  3. return $columns;
  4. }
  5. add_filter( 'screen_layout_columns', 'single_screen_columns' );
  6. function single_screen_dashboard(){return 1;}
  7. add_filter( 'get_user_option_screen_layout_dashboard', 'single_screen_dashboard' );

Report this snippet  

You need to login to post a comment.