今回は「TwentyTen」のsidebar.phpを見てみます。 TwnetyTenはウィジェットに対応しているのでsidebar.phpの中身もウィジェット関係のコードです。 なので、どうやってテーマをウィジェットに対応させているかを見ていきます。 ウィジェットエリアの登録 ウィジェットエリアというのは管理ページでいうところの以下のところのこと。 このウィジェットエリアはfunctions.php内で定義されています。 function twentyten_widgets_init() { // Area 1, located at the top of the sidebar. register_sidebar( array( 'name' => __( 'Primary Widget Area', 'twentyten' ), 'id' => 'primary-widget-are