*
* @package Advance_Blog
*/
/**
* Set up the WordPress core custom header feature.
*
* @uses advance_blog_header_style()
*/
function advance_blog_custom_header_setup() {
add_theme_support( 'custom-header', apply_filters( 'advance_blog_custom_header_args', array(
'default-image' => '',
'default-text-color' => '000000',
'width' => 2000,
'height' => 250,
'flex-height' => true,
'wp-head-callback' => 'advance_blog_header_style',
) ) );
}
add_action( 'after_setup_theme', 'advance_blog_custom_header_setup' );
if ( ! function_exists( 'advance_blog_header_style' ) ) :
/**
* Styles the header image and text displayed on the blog
*
* @see advance_blog_custom_header_setup().
*/
function advance_blog_header_style() {
$header_text_color = get_header_textcolor();
// If no custom options for text are set, let's bail
// If we get this far, we have custom styles. Let's do this.
?>