Change the number of dashboard columns

The purpose of dashboard page is to give you a brief overview of your site so you can see what has happened since your last visit to the admin area. The dashboard can contain information such as a status of your posts, it can show you new comments or even show you all kind of statistics. Depending on the theme and plugins you are using, the dashboard may look different on every WP installation. You can even add a link to your dashboard.

After WordPress 3.8 update, screen option which allowed you to change the number of columns which make up your dashboard has disappeared. Now, standard dashboard layout will force your meta-boxes to organize into 2 columns.

If this is something you want to change, we will teach you how to in this article.

You may want to change the layout back to 1 column which can make your dashboard look more neat and organized, or if you need more stuff on the board, you might want to expand it and add a third column in the picture. It’s really up to you.

Change the number of dashboard columns:

  1. As usual, open your functions.php file
  2. Copy and paste this code:
  3. function dashboard_columns($columns) {
    $columns['dashboard'] = 1;
    return $columns;
    }
    add_filter('screen_layout_columns', 'dashboard_columns');
    
    function layout_dashboard () { return 1; }
    add_filter('get_user_option_screen_layout_dashboard', 'layout_dashboard');
    
  4. Change the number in the line #2 and #6 to a number of columns you want
  5. Save changes.

After you have saved the new function, you can navigate to your dashboard to see how the changes are taking effect. You can now easily drag and drop meta-boxes which are available to you and reorganize your dashboard.

If you have set the number of columns to a number higher than 1, you can easily change the number without tampering with the code again. Simply navigate to you screen options which are located on top of the dashboard page and now you will be able to see the option to change the layout by choosing from any number ranging from 1 to number you have put in the code.

Only want to add the screen options back? This is how you can do that.

START YOUR OWN BLOG

This guide is an introduction to mastering the art of blogging. It provides easy to follow steps to start, maintain, and grow your blog.

Read the guide

Leave a Reply

Your email address will not be published. Required fields are marked *