It’s very rare that you will need to use all of the default widgets in WordPress. As such, it can be helpful to remove ones you don’t need to reduce clutter and improve usability.
WordPress provides us with a function, unregister_widget, that allows us to unregister previously registered widgets. We target the widgets_init hook, the hook that fires directly after all of the core widgets have been initialized and registered, to ensure that we can safely remove the widgets.
Copy the code below and paste it into your theme’s functions.php file. For any widget that you want to remove, … [continue reading]