'333', 'default-image' => '', 'width' => 1180, 'height' => 160, 'flex-width' => true, 'flex-height' => true, 'wp-head-callback' => 'sela_header_style', 'admin-head-callback' => 'sela_admin_header_style', 'admin-preview-callback' => 'sela_admin_header_image', ) ); } add_action( 'after_setup_theme', 'sela_custom_header_setup' ); if ( ! function_exists( 'sela_header_style' ) ) : /** * Styles the header image and text displayed on the blog */ function sela_header_style() { $header_image = get_header_image(); $text_color = get_header_textcolor(); // Bail if the text is hidden or if no custom color is set if ( display_header_text() && $text_color === get_theme_support( 'custom-header', 'default-text-color' ) ) return; // Output the CSS for our custom styles ?> Header screen. */ function sela_admin_header_style() { ?> Header screen. * */ function sela_admin_header_image() { $style = sprintf( ' style="color:#%s;"', get_header_textcolor() ); $image = ''; if ( get_header_image() ) : $image = ' style="background-image: url( ' . get_header_image() . ' );"'; endif; ?>