__( 'Main Sidebar', 'bodyhealth' ),
'id' => 'sidebar-1',
'description' => __( 'Appears on posts and pages except the optional Front Page template, which has its own widgets', 'twentytwelve' ),
'before_widget' => '',
'before_title' => '
',
) );
register_sidebar( array(
'name' => __( 'First Front Page Widget Area', 'bodyhealth' ),
'id' => 'sidebar-2',
'description' => __( 'Appears when using the optional Front Page template with a page set as Static Front Page', 'twentytwelve' ),
'before_widget' => '',
'before_title' => '',
'after_title' => '
',
) );
}
add_action( 'widgets_init', 'bodyhealth_widgets_init' );
function register_menu() {
register_nav_menus(
array(
'main_menu' => 'main navigation',
)
);
}
if ( ! isset( $content_width ) )
$content_width = 980;
add_action( 'init', 'register_menu' );
add_theme_support('post-thumbnails');
add_theme_support( 'automatic-feed-links' );
add_theme_support( 'custom-header');
add_theme_support( 'custom-background');
function custom_excerpt_length( $length ) {
return 40;
}
add_filter( 'excerpt_length', 'custom_excerpt_length', 999 );
if ( is_singular() ) wp_enqueue_script( "comment-reply" );