'', // The height and width of your custom header. // Add a filter to the_bootstrap_header_image_width and the_bootstrap_header_image_height to change these values. 'width' => apply_filters( 'the_bootstrap_header_image_width', 1170 ), 'height' => apply_filters( 'the_bootstrap_header_image_height', 250 ), 'flex-height' => true, // The default header text color 'default-text-color' => '333333', // Add a way for the custom header to be styled in the admin panel that controls custom headers 'wp-head-callback' => 'the_bootstrap_header_style', 'admin-head-callback' => 'the_bootstrap_admin_header_style', 'admin-preview-callback' => 'the_bootstrap_admin_header_image', ) ); add_theme_support( 'custom-header', $args ); if ( ! function_exists( 'wp_get_theme' ) ) { // Compat: Versions of WordPress prior to 3.4. define( 'HEADER_TEXTCOLOR', $args['default-text-color'] ); define( 'HEADER_IMAGE', $args['default-image'] ); define( 'HEADER_IMAGE_WIDTH', $args['width'] ); define( 'HEADER_IMAGE_HEIGHT', $args['height'] ); add_custom_image_header( $args['wp-head-callback'], $args['admin-head-callback'], $args['admin-preview-callback'] ); } } add_action( 'after_setup_theme', 'the_bootstrap_custom_header_setup', 11 ); if ( ! function_exists( 'the_bootstrap_header_style' ) ) : /** * Styles the header image and text displayed on the blog * * @author Automattic * @since 1.2.0 - 05.04.2012 * * @return void */ function the_bootstrap_header_style() { // If no custom options for text are set, let's bail // get_header_textcolor() options: get_theme_support( 'custom-header', 'default-text-color' ) is default, hide text (returns 'blank') or any hex value if ( get_theme_support( 'custom-header', 'default-text-color' ) != get_header_textcolor() ) : ?> Header admin panel. * * @author Automattic * @since 1.2.0 - 05.04.2012 * * @return void */ function the_bootstrap_admin_header_style() { ?> Header admin panel. * * @author Automattic * @since 1.2.0 - 05.04.2012 * * @return void */ function the_bootstrap_admin_header_image() { ?>
>
>
get_header_image(), 'thumbnail_url' => get_header_image(), 'width' => HEADER_IMAGE_WIDTH, 'height' => HEADER_IMAGE_HEIGHT, ); } endif; // get_custom_header /* End of file custom-header.php */ /* Location: ./wp-content/themes/the-bootstrap/inc/custom-header.php */