How to remove default WordPress widgets

When you install WordPress for the first time, without doing any modifications, there will be 12 default widgets waiting for you to modify them and place somewhere on the site.

Whether you want to show your recent posts, a calendar, tag cloud or any other widget, this is a great and easy way of enhancing your website. But when you start installing additional plugins which then install extra widgets, things will definitely get messier, and you will have a hard time finding the right one on the list.

How to remove default WordPress widgets

Although those default widgets can be very useful, many users tend to replace them with improved versions which can be found on the Internet. Also, you will find yourself never using many of those widgets, so why leave them active and in your way?

In this article, we’ll show you how to easily unregister those default widgets and remove them from the list:

    1. Open functions.php file
    2. Copy and paste the following code:
function unregister_default_wp_widgets() {
unregister_widget('WP_Widget_Pages');
unregister_widget('WP_Widget_Calendar');
unregister_widget('WP_Widget_Links');
unregister_widget('WP_Widget_Meta');
unregister_widget('WP_Widget_Archives');
unregister_widget('WP_Widget_Search');
unregister_widget('WP_Widget_Recent_Posts');
unregister_widget('WP_Widget_Categories');
unregister_widget('WP_Widget_Recent_Comments');
unregister_widget('WP_Widget_RSS');
unregister_widget('WP_Widget_Text');
unregister_widget('WP_Widget_Tag_Cloud');
unregister_widget('WP_Widget_Media_Audio');
unregister_widget('WP_Widget_Media_Video');
unregister_widget('WP_Widget_Media_Image');
}

add_action('widgets_init', 'unregister_default_wp_widgets', 1);
  1. Save changes, and you’re done

Of course, you don’t have to leave out all of the default widgets. If you’re going to use some of them, simply remove those from the list, and they will stay installed.

There you go; default widgets are now eliminated from the list, and your work area looks a lot cleaner so that you can find your new widgets more quickly. Check out the Periodic Table of WordPress Plugins to find some of the most popular plugins.

START YOUR OWN BLOG

This guide is an introduction to mastering the art of blogging. It provides easy to follow steps to start, maintain, and grow your blog.

Read the guide

3 thoughts on “How to remove default WordPress widgets

  1. […] and find a bunch of them there. The number of widgets you are able to use, and the type of widgets you can use are in a way determined by theme you are using for your blog. Depending on theme you are currently sporting, the widgets you choose will be adapted to that. If […]

Leave a Reply

Your email address will not be published. Required fields are marked *