//ウィジェット
function sample_widgets(){
register_sidebar(array(
'name' => '共通サイドバー', /* ←追加したいウィジェットの名前 */
'description' => 'サイドバーウィジェット', /* ←追加したいウィジェットの概要 */
'id' => 'sidebar' /* ←追加したいウィジェットのID */
'before_widget' => '
', /* ←追加したいウィジェットを囲う開始タグ */
'after_widget' => '
', /* ←追加したいウィジェットを囲う閉じタグ */
'before_title' => '', /* ←追加したいウィジェットのタイトルを囲う開始タグ */
'after_title' => '
' /* ←追加したいウィジェットのタイトルを囲う閉じタグ */
));
}
Warning: Cannot modify header information - headers already sent by (output started at /home/cosmoclb/www/kokusaijin/wp-content/themes/kokusaijin/functions.php:1) in /home/cosmoclb/www/kokusaijin/wp-includes/pluggable.php on line 1435
Warning: Cannot modify header information - headers already sent by (output started at /home/cosmoclb/www/kokusaijin/wp-content/themes/kokusaijin/functions.php:1) in /home/cosmoclb/www/kokusaijin/wp-includes/pluggable.php on line 1438