'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', $avocation_args ); } add_action( 'after_setup_theme', 'avocation_custom_header_setup', 11 ); function avocation_header_style() { $avocation_header_image = get_header_image(); $avocation_text_color = get_header_textcolor(); // If no custom options for text are set, let's bail. if ( empty( $avocation_header_image ) && $avocation_text_color == get_theme_support( 'custom-header', 'default-text-color' ) ) return; // If we get this far, we have custom styles. ?>