Ive been digging through the wp codex with no luck, i have the customizer custom header enabled and i can upload images, from there i can set some css to choose whether i want it to be full width or repeated, however i want to add a option to customizer to allow me to choose repeat or full width as the image might change and not always be a long banner.
currently using these parameters:
// Add Theme Support for Custom Header
// =========================================================================== //
$defaults = array(
'width' => 0,
'height' => 0,
'flex-width' => true,
'flex-height' => true,
'uploads' => true,
'random-default' => false,
'header-text' => false,
'default-text-color' => '',
'wp-head' => '',
'admin-head-callback' => '',
'admin-preview-callback' => '',
'default-image' => get_template_directory_uri() . '/images/header.jpg',
);
add_theme_support( 'custom-header', $defaults );
You say “repeat” as an option, I assume the image will be used as a background. You would have to use CSS for this, thus no setting available for custom header. However, you can make a separate control and setting, and add them to the custom header section. It would look something like this…
And your header div would look something like this…