Disable default WordPress widgets in sidebar


Im creating my own theme. When I have a clean wordpress installation, there are some default widgets in the sidebar (search, category, recent posts etc). I know that I can remove them from the sidebar by adding a widget to that sidebar, but I want them removed in the sidebar by default. Is there a way to do that without disabling the widget (unregister_widget())?

Keat 3 years 2020-07-03T06:11:13-05:00 0 Answers 59 views 0

Leave an answer