Skip to content
Georgi Popov edited this page Aug 5, 2013 · 2 revisions

Censeo based themes should update the censeo_default_widgets() function (placed in lib/default-widgets.php file) always to return an array of function names that would generate the default widgets in case the sidebar is left empty.

The function names are actually added as actions with the same name, so those can easily be removed from child themes.

Writing a widget render function

Such function is passed the current sidebar options in order to provide proper $before_widget, $before_title, $after_title and $after_widget options.

Clone this wiki locally