-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctions.php
26 lines (23 loc) · 1.01 KB
/
functions.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
function theme_enqueue_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
function nu2013_twentythirteen_child_setup() {
register_default_headers( array(
'rain' => array(
'url' => '%2$s/images/headers/rain.png',
'thumbnail_url' => '%2$s/images/headers/rain-thumbnail.png',
'description' => 'rain'
),
'sky' => array(
'url' => '%2$s/images/headers/sky.png',
'thumbnail_url' => '%2$s/images/headers/sky-thumbnail.png',
'description' => 'sky'
)
) );
}
add_action( 'after_setup_theme', 'nu2013_twentythirteen_child_setup' );
$child_custom_header_defaults = array(
'default-image' => '%2$s/images/headers/rain.png',
);
add_theme_support( 'custom-header', $child_custom_header_defaults );