I am using Multi-site installation. I don’t want all the widgets to appear under widgets.php
on the dashboard. So I tried to find a way to remove or hide unnecessary widgets. So that the new sub-sites created under my Multi-site won’t have many widgets. That way the users won’t get confused with a lot of widgets.
I tried to find the files related to widgets. But I was unable to find such pages in both wp-admin/includes/widgets.php
and wp-admin/widgets.php
.
I also tried to find in the theme files, but failed. Could anyone help me finding these?
Or do I have a chance to hide them using functions.php
?
Add this to your functions.php file:
This will get rid of all default widgets. If you want to keep a certain widget, remove that line from the function above.