__( 'Primary Navigation', 'picolight' ), ) ); // This theme allows users to set a custom background add_custom_background(); // We'll be using post thumbnails for custom header images on posts and pages. // We want them to be 940 pixels wide by 198 pixels tall. // Larger images will be auto-cropped to fit, smaller ones will be ignored. See header.php. set_post_thumbnail_size( '150', '150', true ); //Sidebars function picolight_sidebars(){ register_sidebar(array( 'name' => __('Sidebar', 'picolight'), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); } add_action('widgets_init', 'picolight_sidebars'); define('HEADER_TEXTCOLOR', ''); define('HEADER_IMAGE', '%s/images/headers/shore.jpg'); // %s is the template dir uri define('HEADER_IMAGE_WIDTH', 1000); // use width and height appropriate for your theme define('HEADER_IMAGE_HEIGHT', 280); define('NO_HEADER_TEXT', true ); add_custom_image_header('', 'picolight_admin_header_style'); // Default custom headers packaged with the theme. %s is a placeholder for the theme template directory URI. register_default_headers( array( 'ginko' => array( 'url' => '%s/images/headers/chessboard.jpg', 'thumbnail_url' => '%s/images/headers/chessboard-thumbnail.jpg', /* translators: header image description */ 'description' => __( 'Chessboard', 'picolight' ) ), 'flowers' => array( 'url' => '%s/images/headers/hanoi.jpg', 'thumbnail_url' => '%s/images/headers/hanoi-thumbnail.jpg', /* translators: header image description */ 'description' => __( 'Hanoi', 'picolight' ) ), 'plant' => array( 'url' => '%s/images/headers/lanterns.jpg', 'thumbnail_url' => '%s/images/headers/lanterns-thumbnail.jpg', /* translators: header image description */ 'description' => __( 'Lanterns', 'picolight' ) ), 'sailing' => array( 'url' => '%s/images/headers/pine-cone.jpg', 'thumbnail_url' => '%s/images/headers/pine-cone-thumbnail.jpg', /* translators: header image description */ 'description' => __( 'Pine-cone', 'picolight' ) ), 'cape' => array( 'url' => '%s/images/headers/shore.jpg', 'thumbnail_url' => '%s/images/headers/shore-thumbnail.jpg', /* translators: header image description */ 'description' => __( 'Shore', 'picolight' ) ), 'seagull' => array( 'url' => '%s/images/headers/trolley.jpg', 'thumbnail_url' => '%s/images/headers/trolley-thumbnail.jpg', /* translators: header image description */ 'description' => __( 'Trolley', 'picolight' ) ), 'seagull' => array( 'url' => '%s/images/headers/wheel.jpg', 'thumbnail_url' => '%s/images/headers/wheel-thumbnail.jpg', /* translators: header image description */ 'description' => __( 'Wheel', 'picolight' ) ), 'seagull' => array( 'url' => '%s/images/headers/willow.jpg', 'thumbnail_url' => '%s/images/headers/willow-thumbnail.jpg', /* translators: header image description */ 'description' => __( 'willow', 'picolight' ) ) ) ); } endif; if ( ! function_exists( 'picolight_admin_header_style' ) ) : /** * Styles the header image displayed on the Appearance > Header admin panel. * Referenced via add_custom_image_header() in picolight_setup(). */ function picolight_admin_header_style() { ?>