Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Add custom header support

Theme support for 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,
		'random-default'         => false,
		'header-text'            => true,
		'default-text-color'     => 'Site Name',
		'uploads'                => true,

	);
	add_theme_support( 'custom-header', $header_args );
}

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