Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

With the new Wordpress 3.8 under Screen Options they seem to have misplaced the "Columns" feature where you could put your widgets into 1 Column, 2 Columns, 3 Columns, or 4 Columns. My question is how to I force my Dashboard Widgets to only be 1 column, or in other words, take up the whole width of the screen versus just a portion of the screen?

share|improve this question
add comment

2 Answers 2

up vote 22 down vote accepted

Another solution is to add the columns setting back to the settings.

function wpse126301_dashboard_columns() {
    add_screen_option(
        'layout_columns',
        array(
            'max'     => 2,
            'default' => 1
        )
    );
}
add_action( 'admin_head-index.php', 'wpse126301_dashboard_columns' );

Screenshot of the Screen Layout setting

There is a related Trac ticket: #26354

share|improve this answer
    
where should that code be entered? –  jgauffin Jan 8 at 12:39
    
@jgauffin You could put that in your currently active theme's functions.php file. –  Michael Ecklund Mar 31 at 16:24
add comment

This happens because of the new media queries. A very unfortunate change …

Anyway, you can change it by setting a custom width for .postbox-container.

Use 50% for two columns and 100 % for just one column.

add_action( 'admin_head-index.php', function()
{
    ?>
<style>
.postbox-container {
    min-width: 100% !important;
}
.meta-box-sortables.ui-sortable.empty-container { 
    display: none;
}
</style>
    <?php
});
share|improve this answer
3  
You may also want to add in this to hide the empty box: .meta-box-sortables.ui-sortable.empty-container { display: none; } –  Ipstenu Dec 12 '13 at 20:56
1  
@Ipstenu Thanks, I have added it to to my answer. –  toscho Dec 12 '13 at 20:58
add comment

protected by Community Dec 17 '13 at 2:46

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.