Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

tet

// Register Default Headers
function custom_default_headers() {

	$headers = array(
		'eiffel_tower' => array(
			'description'   => __( 'Eiffel Tower', 'text_domain' ),
			'url'           => '%s/images/eiffel_tower.jpg',
			'thumbnail_url' => '%s/images/eiffel_tower_small.jpg',
		),
		'egyptian_pyramids' => array(
			'description'   => __( 'Egyptian Pyramids', 'text_domain' ),
			'url'           => '%s/images/egyptian_pyramids.jpg',
			'thumbnail_url' => '%s/images/egyptian_pyramids_small.jpg',
		),
		'taj_mahal' => array(
			'description'   => __( 'Taj Mahal', 'text_domain' ),
			'url'           => '%s/images/taj_mahal.jpg',
			'thumbnail_url' => '%s/images/taj_mahal_small.jpg',
		),
		'colosseum' => array(
			'description'   => __( 'Colosseum', 'text_domain' ),
			'url'           => '%s/images/colosseum.jpg',
			'thumbnail_url' => '%s/images/colosseum_small.jpg',
		),
		'machu_picchu' => array(
			'description'   => __( 'Machu Picchu', 'text_domain' ),
			'url'           => '%s/images/machu_picchu.jpg',
			'thumbnail_url' => '%s/images/machu_picchu_small.jpg',
		),
	);
	register_default_headers( $headers );

}

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