You appear to be a bot. Output may be restricted
Description
Sets up the WordPress core custom header and custom background features.
Usage
twentysixteen_custom_header_and_background();
Parameters
Returns
void
Source
File name: twentysixteen/inc/customizer.php
Lines:
1 to 59 of 59
function twentysixteen_custom_header_and_background() { $color_scheme = twentysixteen_get_color_scheme(); $default_background_color = trim( $color_scheme[0], '#' ); $default_text_color = trim( $color_scheme[3], '#' ); add_theme_support( 'custom-background', /** * Filters the arguments used when adding 'custom-background' support in Twenty Sixteen. * * @since Twenty Sixteen 1.0 * * @param array $args { * An array of custom-background support arguments. * * @type string $default-color Default color of the background. * } */ apply_filters( 'twentysixteen_custom_background_args', array( 'default-color' => $default_background_color, ) ) ); add_theme_support( 'custom-header', /** * Filters the arguments used when adding 'custom-header' support in Twenty Sixteen. * * @since Twenty Sixteen 1.0 * * @param array $args { * An array of custom-header support arguments. * * @type string $default-text-color Default color of the header text. * @type int $width Width in pixels of the custom header image. Default 1200. * @type int $height Height in pixels of the custom header image. Default 280. * @type bool $flex-height Whether to allow flexible-height header images. Default true. * @type callable $wp-head-callback Callback function used to style the header image and text * displayed on the blog. * } */ apply_filters( 'twentysixteen_custom_header_args', array( 'default-text-color' => $default_text_color, 'width' => 1200, 'height' => 280, 'flex-height' => true, 'wp-head-callback' => 'twentysixteen_header_style', ) ) ); }