WordPress自作テーマ kunai
functions.phpのコード
カスタマイズを前提で、どうぞ。
<?php
function my_widgets_init() {
register_sidebar( array(
'name' => __( 'sidebar-1', 'kunai' ),
'id' => 'sidebar',
'before_widget' => '<div id="%1$s" class="widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h2 class="widgettitle">',
'after_title' => '</h2>'
) );
}
add_action( 'widgets_init', 'my_widgets_init' );
$custom_header_defaults = array(
'default-image' => get_template_directory_uri() .'/img/image.jpg',
'width' => 1280,
'height' => 260,
);
add_theme_support( 'custom-header', $custom_header_defaults );
if ( ! isset( $content_width ) ) $content_width = 640;
add_theme_support( 'automatic-feed-links' );
add_theme_support( 'menus' );
add_theme_support( 'title-tag' );
add_theme_support( 'post-thumbnails' );
set_post_thumbnail_size( 150, 150 );
?>

コメントを残す