get_parent_theme_file_uri( '/images/header.jpg' ), 'width' => 1600, 'height' => 600, 'flex-height' => true, 'wp-head-callback' => 'faith_header_style', ) ) ); /* register_default_headers( array( 'default-image' => array( 'url' => '%s/images/header.jpg', 'thumbnail_url' => '%s/images/header.jpg', 'description' => __( 'Default Header Image', 'faith' ), ), ) ); */ } add_action( 'after_setup_theme', 'faith_custom_header_setup' ); if ( ! function_exists( 'faith_header_style' ) ) : /** * Styles the header image and text displayed on the blog. * * @see faith_custom_header_setup(). */ function faith_header_style() { $header_text_color = get_header_textcolor(); // If no custom options for text are set, let's bail. // get_header_textcolor() options: add_theme_support( 'custom-header' ) is default, hide text (returns 'blank') or any hex value. if ( get_theme_support( 'custom-header', 'default-text-color' ) === $header_text_color ) { return; } // If we get this far, we have custom styles. Let's do this. ?>