Use this code to display single-column WordPress dashboard!


(Pradeep Kumar) #1

I always love to keep my WordPress dashboard clean and simple. This is one of the first things I open every day and I want it to be organized. I remove unnecessary stuff like “WordPress Events and News”, “Welcome”, “Quick Draft”, etc. Earlier WordPress had the option to arrange all the boxes in a single column, but after their regular version updates, they disabled this option I guess, I can’t find this anywhere. Then I came across this awesome code from DigWP by which you can get back this single-column dashboard!

###Earlier it looked like this…

Note: I couldn’t remove this ‘Drag boxes here’ section, which was really annoying.

###Now it looks like this…

I like this single-column version much better. If you want something like this, then you can add this code to your functions.php theme file:

// Display single-column dashboard
function shapeSpace_screen_layout_columns($columns) {
	$columns['dashboard'] = 1;
	return $columns;
add_filter('screen_layout_columns', 'shapeSpace_screen_layout_columns');

function shapeSpace_screen_layout_dashboard() { return 1; }
add_filter('get_user_option_screen_layout_dashboard', 'shapeSpace_screen_layout_dashboard');

That’s all. You have forced one-column dashboard now!