Display dashboard in a single column only


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.