I am trying to setup some default widgets areas and add to them some default widgets when my theme is activated.
On a fresh WordPress install I got some widgets in the first sidebar
( search, recent posts, archives, meta area),
I am using unregister_widget()
to remove those widgets,
now I cannot find a way to add widgets to those sidebars via functions.php.
Could you help me, please?
Thanks for now.