Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • But when first create a subblog it already has 5 widgets in the “Primary Widget Area”. How do I change these 5 widgets?

    I think those 5 default widgets are hardcoded in wp-admin/includes/upgrade.php inside the wp_install_defaults function there is a line like this:

    update_option( 'sidebars_widgets', array ( 'wp_inactive_widgets' => array ( ), 'primary-widget-area' => array ( 0 => 'search-2', 1 => 'recent-posts-2', 2 => 'recent-comments-2', 3 => 'archives-2', 4 => 'categories-2', 5 => 'meta-2', ), 'secondary-widget-area' => array ( ), 'first-footer-widget-area' => array ( ), 'second-footer-widget-area' => array ( ), 'third-footer-widget-area' => array ( ), 'fourth-footer-widget-area' => array ( ), 'array_version' => 3 ) );

    I don’t think there is a way to modify those 5 default ones, other than monkey-patching the source code 🙁

    Thanks to the above comment, it worked after the repair table!

Viewing 2 replies - 1 through 2 (of 2 total)