__( 'Primary Navigation', 'coraline' ), ) ); // This theme allows users to set a custom background add_custom_background(); // Your changeable header business starts here define( 'HEADER_TEXTCOLOR', '000' ); // No CSS, just an IMG call. The %s is a placeholder for the theme template directory URI. define( 'HEADER_IMAGE', '%s/images/headers/water-drops.jpg' ); // The height and width of your custom header. You can hook into the theme's own filters to change these values. // Add a filter to coraline_header_image_width and coraline_header_image_height to change these values. define( 'HEADER_IMAGE_WIDTH', apply_filters( 'coraline_header_image_width', 990 ) ); define( 'HEADER_IMAGE_HEIGHT', apply_filters( 'coraline_header_image_height', 180 ) ); // 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( HEADER_IMAGE_WIDTH, HEADER_IMAGE_HEIGHT, true ); // Add a way for the custom header to be styled in the admin panel that controls // custom headers. See coraline_admin_header_style(), below. add_custom_image_header( 'coraline_header_style', 'coraline_admin_header_style', 'coraline_admin_header_image' ); // ... and thus ends the changeable header business. // Default custom headers packaged with the theme. %s is a placeholder for the theme template directory URI. register_default_headers( array( 'water-drops' => array( 'url' => '%s/images/headers/water-drops.jpg', 'thumbnail_url' => '%s/images/headers/water-drops-thumbnail.jpg', /* translators: header image description */ 'description' => __( 'Water drops', 'coraline' ) ), 'limestone-cave' => array( 'url' => '%s/images/headers/limestone-cave.jpg', 'thumbnail_url' => '%s/images/headers/limestone-cave-thumbnail.jpg', /* translators: header image description */ 'description' => __( 'Limestone cave', 'coraline' ) ), 'Cactii' => array( 'url' => '%s/images/headers/cactii.jpg', 'thumbnail_url' => '%s/images/headers/cactii-thumbnail.jpg', /* translators: header image description */ 'description' => __( 'Cactii', 'coraline' ) ) ) ); } endif; ?>