'ffffff', ) ); // Add support for custom headers. $custom_header_support = array( // The default header text color. 'default-text-color' => '377687', // The height and width of our custom header. 'width' => apply_filters( 'pilotfish_header_image_width', 400 ), 'height' => apply_filters( 'pilotfish_header_image_height', 125 ), // Callback for styling the header. 'wp-head-callback' => 'pilotfish_header_style', // Callback for styling the header preview in the admin. 'admin-head-callback' => 'pilotfish_admin_header_style', // Callback used to display the header preview in the admin. 'admin-preview-callback' => 'pilotfish_admin_header_image', ); add_theme_support( 'custom-header', $custom_header_support ); } endif; add_action('after_setup_theme', 'pilotfish_setup'); /** * Styles the header image and text displayed on the blog */ if ( ! function_exists( 'pilotfish_header_style' ) ) : function pilotfish_header_style() { $text_color = get_header_textcolor(); // If no custom options for text are set, let's bail. if ( $text_color == HEADER_TEXTCOLOR ) return; // If we get this far, we have custom styles. Let's do this. ?> Header admin panel. * * Referenced via add_theme_support('custom-header') in pilotfish_setup(). */ function pilotfish_admin_header_style() { ?> Header admin panel. * * Referenced via add_theme_support('custom-header') in pilotfish_setup(). * */ function pilotfish_admin_header_image() { ?>