How to Remove Widgets in WordPress

How to Remove Widgets in WordPress

Spread The Love

Hey Guys ! In this Post We will cover how to remove Widgets in WordPress because Nobody uses all the default widgets of WordPress. In fact, there are probably a few default widgets that we would never use.

To remove the Widgets Place the following in your functions file -

=> Go to Appearance > Editor > Theme Functionsfunctions.php:

function wordpress_remove_widgets() {
          unregister_widget('WP_Widget_Pages');
          unregister_widget('WP_Widget_Calendar');
          unregister_widget('WP_Widget_Archives');
          unregister_widget('WP_Widget_Meta');
          unregister_widget('WP_Widget_Search');
          unregister_widget('WP_Widget_Text');
          unregister_widget('WP_Widget_Categories');
          unregister_widget('WP_Widget_Recent_Posts');
          unregister_widget('WP_Widget_Recent_Comments');
          unregister_widget('WP_Widget_RSS');
          nregister_widget('WP_Widget_Tag_Cloud');
          unregister_widget('WP_Nav_Menu_Widget');
          unregister_widget('WP_Widget_Media_Audio');
          unregister_widget('WP_Widget_Media_Video');
          unregister_widget('WP_Widget_Custom_HTML');
}
add_action('widgets_init', 'wordpress_remove_widgets', 11);

Also, If you want to know how to remove widgets description then you can visit Remove Description of Widgets.

 If you liked my Article then please share it and like my Facebook page for latest WordPress tutorials. You can also join my Newsletter for latest updates. 🙂

  • 24
    Shares

Himani Bhardwaj

I Himani Bhardwaj founder of Plugins Reviews and also a Professional Developer. I'm a Passionate self-made Girl and plays an active role in the activities of WordPress Plugin Reviews I have also attended Chandigarh WordPress Meetup Sessions. I run an online website geared to help those who wants to Know about WordPress Topmost Plugins, Themes and also who wants to learn about PHP Concepts

Leave a Reply

Close Menu