Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

How to Disable Unwanted Widgets in WordPress

Editorial Note: We earn a commission from partner links on WPBeginner. Commissions do not affect our editors' opinions or evaluations. Learn more about Editorial Process.

Do you want to disable unused widgets in WordPress?

The widgets screen in WordPress shows you all the widgets that you can add to your theme. The problem is that too many widgets clutter the screen, and you may not need all of them.

In this article, we will show you how to disable unwanted widgets in WordPress for a clutter free widget experience.

Remove unwanted widgets in WordPress

Why Disable Unwanted Widgets in WordPress?

Widgets are blocks of elements that you can add to your WordPress site’s sidebars or widget ready areas. WordPress comes with several default widgets of its own, and other WordPress plugins may add their own widgets as well.

All these widgets can be seen on the Appearance » Widgets screen. However, you’ll notice that some of these widgets are not very useful, and you will probably never use them on your website.

If you are using plugins that also add their own widgets, then soon the widgets screen will be a huge mess making it difficult to locate the widgets you actually want to use.

Let’s see how to easily clean up the widget screen by disabling unwanted widgets in WordPress.

Disabling Unwanted Widgets in WordPress

The first thing you need to do is install and activate the WP Widget Disable plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, you need to visit Appearance » Disable Widgets page to configure plugin settings.

Disable widgets settings

The settings page is divided into two tabs. First, you need to select the sidebar widgets that you want to disable. Simply check the box next to the widgets that you don’t want to use and click on the ‘Save Changes’ button.

You can now visit Appearance » Widgets page to see the difference. All selected widgets will no longer be visible on the widgets screen.

Cleaned up widgets screen in WordPress

How to Remove WordPress Dashboard Widgets

WordPress also displays several widgets on the Dashboard page. Some plugins and themes may also add their own widgets to your WordPress dashboard.

Normally, you can clean up the dashboard screen by clicking on the ‘Screen Options‘ button and uncheck the widgets that you don’t want to see. This is the quickest and simplest approach. It’s best for sites with just one user.

Cleaning up dashbaord screen in WordPress

However, this method will allow you and anyone else who uses your site to simply click on the Screen Options button and display those widgets again.

WP Widget Disable plugin allows you to hide dashboard widgets even from Screen Options menu.

Head over to Appearance » Disable Widgets page and click on the Dashboard Widgets tab.

Select the widgets you want to hide from the dashboard screen and click on the ‘Save Changes’ button to store your settings.

You can now visit the dashboard page to see it in action.

Disabled dashboard widgets in WordPress

You will notice that the widgets you selected to remove are no longer visible on the dashboard or inside screen options menu. You can also create your own custom WordPress dashboard widgets to display on the dashboard.

If you want to completely remove WordPress dashboards widgets, so that other users cannot simply toggle them back on, then you need to paste the following code in your theme’s functions.php file, a site-specific plugin, or in a code snippets plugin:

function remove_dashboard_widgets() {
    global $wp_meta_boxes;
  
    unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_quick_press']);
    unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_incoming_links']);
    unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_right_now']);
    unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins']);
    unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_drafts']);
    unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_comments']);
    unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_primary']);
    unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_secondary']);
  
}
  
add_action('wp_dashboard_setup', 'remove_dashboard_widgets' );

Each of the widgets listed above are pretty self-explanatory. Simply remove any widget from the list that you want to keep. If you want to remove these widgets from all users except for admins, then just change the last line to this:

if (!current_user_can('manage_options')) {
    add_action('wp_dashboard_setup', 'remove_dashboard_widgets' );
}

We recommend adding this code using the WPCode plugin. It’s the safest and easiest way to add custom code in WordPress without editing your theme files.

To get started, you need to install and activate the free WPCode plugin on your website. If you need help, see this guide on how to install a WordPress plugin.

Once the plugin is activated, head to Code Snippets » Add Snippet from your WordPress dashboard.

From there, hover your mouse over the ‘Add Your Custom Code (New Snippet)’ option and click the ‘Use snippet’ button.

Add a new custom code snippet in WPCode

Next, you’ll be taken to the ‘Create Custom Snippet’ page. First, add a title for your snippet, which can be anything to help you remember what the code is for.

Then, simply paste the code from above into the ‘Code Preview’ box and choose ‘PHP Snippet’ as the code type from the dropdown menu.

Paste your code into the WPCode plugin

After that, toggle the switch from ‘Inactive’ to ‘Active’ and click the ‘Save Snippet’ button at the top of the page.

Activate and save your custom code snippet

Now all of the WordPress dashboard widgets will be disabled.

We hope this article helped you learn how to disable unwanted widgets in WordPress. You may also want to see our guide on how to create a membership site in WordPress, and our comparison of the best WordPress page builder plugins to create custom templates without any code.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us. Here's our editorial process.

Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit - a collection of WordPress related products and resources that every professional should have!

Reader Interactions

10 CommentsLeave a Reply

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Arnold says

    Why are you using “unset()” in stead of “remove_meta_box()”?

    Curious :-)

    High Regards,
    Arnold.

    • WPBeginner Support says

      remove_meta_box can be good if you know when the meta box was added and add the code in the correct location but the unset method does not require that level of knowledge and is more guaranteed to work for a beginner :)

      Admin

  3. Maria says

    Hi.
    When I disable all the other widgets, I’m losing my search-field as well even though i do not choose this on the list. So I want to keep my search field, but not the other widgets. How can i fix this?

  4. Joshua Hoe says

    So if hiding the widgets mean Unregistered widgets will not be loaded, does it also mean that the website speed will be faster as well?

    • WPBeginner Support says

      Depending on the widgets you are disabling there could be a small speed increase but in general nothing overly noticeable in terms of speed

      Admin

  5. Luis says

    Hi,
    But how can we remove the widget area as seen in last picture? The widgets are gone, but the boxes (empty) are there to see. Can we also remove this empty boxes?

    Thanks

    • WPBeginner Support says

      You would need a different plugin for that, the plugin does not currently remove those

      Admin

  6. Jeff Yablon says

    Umm … You know this disables nothing? It HIDES them, leaves their stub coded overhead, and adds an extra plug-in.

Leave a Reply to Arnold Cancel reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

WPBeginner Assistant
How can I help you?

By chatting, you consent to this chat being stored according to our privacy policy and your email will be added to receive weekly WordPress tutorials from WPBeginner.