register the default image to header
This commit is contained in:
parent
78470de5e7
commit
79ab817417
|
@ -30,13 +30,19 @@ if(!function_exists('tainacan_setup')) {
|
||||||
'default-image' => get_template_directory_uri() . '/assets/images/capa.png',
|
'default-image' => get_template_directory_uri() . '/assets/images/capa.png',
|
||||||
'default-text-color' => '000',
|
'default-text-color' => '000',
|
||||||
'header-text' => true,
|
'header-text' => true,
|
||||||
'width' => 1280,
|
|
||||||
'height' => 280,
|
|
||||||
'flex-width' => false,
|
'flex-width' => false,
|
||||||
'flex-height' => true,
|
'flex-height' => true,
|
||||||
);
|
);
|
||||||
add_theme_support( 'custom-header', $header_args );
|
add_theme_support( 'custom-header', $header_args );
|
||||||
|
register_default_headers(
|
||||||
|
array(
|
||||||
|
'default-image' => array(
|
||||||
|
'url' => '%s/assets/images/capa.png',
|
||||||
|
'thumbnail_url' => '%s/assets/images/capa.png',
|
||||||
|
'description' => __( 'Default Image', 'tainacan-theme' ),
|
||||||
|
),
|
||||||
|
)
|
||||||
|
);
|
||||||
$logo_args = array(
|
$logo_args = array(
|
||||||
'height' => 25,
|
'height' => 25,
|
||||||
'width' => 400,
|
'width' => 400,
|
||||||
|
|
Loading…
Reference in New Issue