'444', 'default-image' => '', // Set height and width, with a maximum value for the width. 'height' => 120, 'width' => 1170, 'max-width' => 2000, // Support flexible height and width. 'flex-height' => true, 'flex-width' => true, // Random image rotation off by default. 'random-default' => false, // Callbacks for styling the header and the admin preview. 'wp-head-callback' => 'bre_header_style', 'admin-head-callback' => 'bre_admin_header_style', 'admin-preview-callback' => 'bre_admin_header_image', ); add_theme_support( 'custom-header', $args ); } add_action( 'after_setup_theme', 'bre_custom_header_setup' ); /** * Styles the header text displayed on the blog. * * get_header_textcolor() options: 444 is default, hide text (returns 'blank'), or any hex value. * * @since Bootstrap eCommerce 1.0 */ function bre_header_style() { $img_head = get_header_image(); if (!empty($img_head)) { ?> Header admin panel. * * @since Bootstrap eCommerce 1.0 */ function bre_admin_header_style() { ?> Header admin panel. * This callback overrides the default markup displayed there. * * @since Bootstrap eCommerce 1.0 */ function bre_admin_header_image() { ?>