'220e10', // Callbacks for styling the header and the admin preview. 'wp-head-callback' => 'avocation_header_style', 'admin-head-callback' => 'avocation_admin_header_style', 'admin-preview-callback' => 'avocation_admin_header_image', ); add_theme_support( 'custom-header', $args ); } add_action( 'after_setup_theme', 'avocation_custom_header_setup', 11 ); add_action( 'admin_print_styles-appearance_page_custom-header', 'avocation_custom_header_fonts' ); function avocation_header_style() { $header_image = get_header_image(); $text_color = get_header_textcolor(); // If no custom options for text are set, let's bail. if ( empty( $header_image ) && $text_color == get_theme_support( 'custom-header', 'default-text-color' ) ) return; // If we get this far, we have custom styles. ?>