How to Disable Unwanted Widgets in WordPress?


Do you want to learn how to disable unwanted widgets in WordPress?

Widgets are the block of elements that can be added to your WordPress site’s sidebars. Usually, it is displayed in boxes and is seen immediately after login. Also, plays an important role for the administration to observe the activities on the website. 

You are allowed to add custom dashboard widgets. In addition to this, the plugin that you use sometimes can display widgets on its own. Due to this, the dashboard becomes messed with unnecessary widgets. This creates a difficult situation for the administration to inspect widgets effectively.  

Surely, to prevent the cluttering of the dashboard, you need to hide the widgets from the user. Here are the quick and easy ways to help you out. 

How to Disable Unwanted Widgets in WordPress?

In this method, you will disable unwanted widgets using the plugin Widget Disable. Additionally, it is a free plugin that disables widgets of any sidebar and dashboard for the current WordPress site you are working on. Follow the steps mentioned below:

  • Install and activate the Widget Disable plugin at first.
Disable unwanted widgets in WordPress.
  • Navigate to Appearance >> Disable Widget for further configuration of plugin’s setting.
Disable unwanted widgets in WordPress.
  • The setting page has two parts: sidebar and dashboard widgets. Firstly, determine the widgets you ought to remove then check the box just beside the widgets which you want to disable.
Disable unwanted widgets in WordPress.
  • Don’t forget to save the changes. 

Widget Disable also permits you to hide the dashboard widgets. All you need to do is head over to Appearance >> Disable Widgets. Furthermore, snick to the Dashboard Widgets and go for the option you would like to disable. Hence, save the changes.

Disable unwanted widgets in WordPress.

Moreover, you can visit Appearance >> Widgets to notice the changes.

How to Remove Dashboard Widgets?

Like the sidebar, the dashboard also contains a lot of widgets. One can clean the dashboard area through Screen Options. Simply, click on the Screen Options and uncheck the widgets you would like to disable.

Visit the dashboard in order to see the result. Additionally, WordPress even allows you to display your own custom WordPress dashboard widgets on the dashboard.

Undoubtedly, this is the easiest and quickest method and is considered best for the site with only one user. However, the widgets can be reappeared again if any of the users check the options of Screen Options.

How to Disable Unwanted Widgets Using Code

If you are tired of installing plugins then this is the method for you. Here, all you need to do is add the code mentioned below in your functions.php file, but remember a small mistake can break down the entire website. 

Adding code completely removes WordPress dashboard widgets. Even the user cannot toggle them back once the code is added. Copy and paste the following code into your functions.php file. 

function remove_dashboard_widgets() {
global $wp_meta_boxes;
add_action('wp_dashboard_setup', 'remove_dashboard_widgets' );

From the above code you can remove the widgets you would like to keep in the dashboard. Also, if you want to display the widgets for the admin then change the last line to the code mentioned below:

123if (!current_user_can(‘manage_options’)) {    add_action(‘wp_dashboard_setup’, ‘remove_dashboard_widgets’ );}

Therefore, you have successfully disabled unwanted widgets using codes.

Wrapping up

Lastly, we hope this article was helpful for you. You can use any of the above-mentioned methods to solve your dashboard cluttering problem. Besides this, follow our tutorial “How to Disable New User Notification in WordPress?” to know more about WordPress.


Please enter your comment!
Please enter your name here