Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

custom_theme_features_custom_header

// Register Theme Features
function custom_theme_features()  {

	// Add theme support for Custom Header
	$header_args = array(
		'default-image'          => 'http://www.example.com/some-image.png',
		'width'                  => 600,
		'height'                 => 200,
		'flex-width'             => true,
		'flex-height'            => true,
		'uploads'                => true,
		'random-default'         => false,
		'header-text'            => true,
		'default-text-color'     => 'Site Name',
		'wp-head-callback'       => '',
		'admin-head-callback'    => '',
		'admin-preview-callback' => '',
	);
	add_theme_support( 'custom-header', $header_args );
}

// Hook into the 'after_setup_theme' action
add_action( 'after_setup_theme', 'custom_theme_features' );