920, 'height' => 150, 'flex-height' => true, 'flex-width' => true, 'default-text-color' => 'fff', 'wp-head-callback' => 'skylark_header_style', 'admin-head-callback' => 'skylark_admin_header_style', 'admin-preview-callback' => 'skylark_admin_header_image' ) ) ); } add_action( 'after_setup_theme', 'skylark_custom_header_setup' ); if ( ! function_exists( 'skylark_header_style' ) ) : /** * Styles the header image and text displayed on the blog * * @see skylark_custom_header_setup(). * * @since Skylark 1.0.1 */ function skylark_header_style() { $header_text_color = get_header_textcolor(); // If no custom options for text are set, let's bail if ( HEADER_TEXTCOLOR == $header_text_color && '' == get_header_image() ) return; // If we get this far, we have custom styles. Let's do this. ?> Header admin panel. * * @see skylark_custom_header_setup(). * * @since skylark 1.0.1 */ function skylark_admin_header_style() { ?> Header admin panel. * * @see skylark_custom_header_setup(). * * @since Skylark 1.0.1 */ function skylark_admin_header_image() { $style = sprintf( ' style="color:#%s;"', get_header_textcolor() ); $header_image = get_header_image(); ?>