'676767', // Callbacks for styling the header and the admin preview. 'wp-head-callback' => 'theme_header_style', 'admin-head-callback' => 'theme_header_style', 'admin-preview-callback' => 'theme_header_style', ); add_theme_support('custom-header', $args); } add_action('after_setup_theme', 'theme_custom_header_setup', 11); /** * Style the header text displayed on the blog. * * get_header_textcolor() options: Hide text (returns 'blank'), or any hex value. * * @since Artwork 1.0 */ function theme_header_style() { $theme_header_text_color = get_header_textcolor(); $theme_color_text = get_option('theme_color_text'); $theme_brand_color = get_option('theme_color_primary'); $theme_second_brand_color = get_option('theme_color_second'); $theme_third_brand_color = get_option('theme_color_third'); $theme_fourth_brand_color = get_option('theme_color_fourth'); $theme_font_family = get_theme_mod("theme_title_font_family", "Roboto"); $theme_font_weight_style = get_theme_mod("theme_title_font_weight"); $theme_font_weight = preg_replace("/[^0-9?! ]/", "", $theme_font_weight_style); $theme_font_style = preg_replace("/[^A-Za-z?! ]/", "", $theme_font_weight_style); $theme_font_size = get_theme_mod("theme_title_font_size", "90px"); if ($theme_font_style == "") { $theme_font_style = "normal"; } if ($theme_font_weight == "") { $theme_font_weight = "700"; } if (strcasecmp($theme_font_family, "Roboto") != 0) { ?> " rel='stylesheet' type='text/css'>