How to Force Dashboard to Display a Single Column Only

This PHP snippet will allow you to force a single column display on your WordPress dashboard.

Useful Read: Exclude Trackbacks and Pingbacks from Comment Count

All you need to do is copy the following code and paste it inside your functions.php file located within your theme directory.

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' );

 

0 Comments

Leave a Comment.