* * @link https://developer.wordpress.org/themes/functionality/custom-headers/ * * @package DarkNews */ /** * Set up the WordPress core custom header feature. * * @uses darknews_header_style() */ function darknews_custom_header_setup() { add_theme_support('custom-header', apply_filters('darknews_custom_header_args', array( 'default-image' => '', 'default-text-color' => 'f3f3f3', 'width' => 1500, 'height' => 400, 'flex-height' => true, 'wp-head-callback' => 'darknews_header_style', ))); } add_action('after_setup_theme', 'darknews_custom_header_setup'); if (!function_exists('darknews_header_style')) : /** * Styles the header image and text displayed on the blog. * * @see darknews_custom_header_setup(). */ function darknews_header_style() { $darknews_header_image_tint_overlay = darknews_get_option('disable_header_image_tint_overlay'); $darknews_site_title_font_size = darknews_get_option('site_title_font_size'); $darknews_header_text_color = get_header_textcolor(); // If we get this far, we have custom styles. Let's do this. ?>