* * @link https://developer.wordpress.org/themes/functionality/custom-headers/ * * @package bdmeter */ /** * Set up the WordPress core custom header feature. * * @uses bdmeter_header_style() */ function bdmeter_custom_header_setup() { add_theme_support('custom-header', apply_filters('bdmeter_custom_header_args', array( 'default-image' => '', 'default-text-color' => '000000', 'width' => 1900, 'height' => 600, 'flex-height' => true, 'wp-head-callback' => 'bdmeter_header_style', ))); } add_action('after_setup_theme', 'bdmeter_custom_header_setup'); if (!function_exists('bdmeter_header_style')) : /** * Styles the header image and text displayed on the blog. * * @see bdmeter_custom_header_setup(). */ function bdmeter_header_style() { $header_image_tint_overlay = bdmeter_get_option('disable_header_image_tint_overlay'); $site_title_font_size = bdmeter_get_option('site_title_font_size'); $header_text_color = get_header_textcolor(); $main_banner_section_background_image = bdmeter_get_option('main_banner_section_background_image'); // If we get this far, we have custom styles. Let's do this. ?>