Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

First Header Background

First try creating a background image for my header

// Register Theme Features
function custom_theme_features()  {

	// Add theme support for Custom Background
	$background_args = array(
		'default-color'          => '',
		'default-image'          => '',
		'default-repeat'         => '',
		'default-position-x'     => '',
		'wp-head-callback'       => '',
		'admin-head-callback'    => '',
		'admin-preview-callback' => '',
	);
	add_theme_support( 'custom-background', $background_args );

	// Add theme support for Custom Header
	$header_args = array(
		'default-image'          => 'www.image.com',
		'width'                  => 1900,
		'height'                 => 600,
		'flex-width'             => true,
		'flex-height'            => true,
		'uploads'                => true,
		'random-default'         => true,
		'header-text'            => true,
		'default-text-color'     => 'Texto Exemplo Vai Aqui',
		'wp-head-callback'       => '',
		'admin-head-callback'    => '',
		'admin-preview-callback' => '',
	);
	add_theme_support( 'custom-header', $header_args );
}
add_action( 'after_setup_theme', 'custom_theme_features' );