* * @link https://developer.wordpress.org/themes/functionality/custom-headers/ * * @package Blogeasy */ /** * Set up the WordPress core custom header feature. * * @uses blogeasy_header_style() */ function blogeasy_custom_header_setup() { add_theme_support( 'custom-header', apply_filters( 'blogeasy_custom_header_args', array( 'default-image' => '', 'default-text-color' => '363636', 'width' => 1200, 'height' => 250, 'flex-height' => true, 'wp-head-callback' => 'blogeasy_header_style', ) ) ); } add_action( 'after_setup_theme', 'blogeasy_custom_header_setup' ); if ( ! function_exists( 'blogeasy_header_style' ) ) : /** * Styles the header image and text displayed on the blog. * * @see blogeasy_custom_header_setup(). */ function blogeasy_header_style() { if ( get_header_image() ) : ?>