Remove widgets from the WordPress dashboard

If you want to hide one or more of the widgets shown on the WordPress dashboard all you need is to add a simple function added to your theme’s function.php file. First you need to identify the ID’s of the widgets you want to hide. To do that, you will want to right-click on the widget, and in the window that appears choose “Inspect Element”

That will open up your browser console and display the underlying code of the page. From here you can find the ID of the widget that you want to hide:

For example, in the screenshot above you can see that we have widgets with ID’s of “dashboard_right_now”, “dashboard_activity”, and “jetpack_summary_widget”.

Now you will want to open the functions.php file of your website theme through SFTP. Within that file paste this code:

function remove_dashboard_widgets() {
	remove_meta_box( 'dashboard_right_now', 'dashboard', 'normal' );
	remove_meta_box( 'dashboard_activity', 'dashboard', 'side' );
	remove_meta_box( 'jetpack_summary_widget', 'dashboard', 'normal' );
} 
add_action('wp_dashboard_setup', 'remove_dashboard_widgets' );

Make sure to change the first value within the ( ) to the ID names of the widgets that you wish to hide. Also note that in the example above, two of the widgets say “normal”, and one says “side”. “Normal” widgets are on the left, and “side” widgets are on the right.