Note sure what is up here. I removed the default twentyten headers for my child theme. Then registered another set of images. However when I new blog is created using the child theme is still shows the default "Path" header image. In the admin it shows my custom images and the default ones removed as expected. Just not sure why on the users side it still showing the default header.
// removes/unregisters the default headers in twentyten
function my_default_remove_default_headers(){
unregister_default_headers( array(
'berries',
'cherryblossom',
'concave',
'fern',
'forestfloor',
'inkwell',
'path' ,
'sunset')
);
}
add_action( 'after_setup_theme', 'my_default_remove_default_headers', 11 );
// Add/register additional header images
function yourchildtheme_setup(){
$yourchildtheme_dir = get_bloginfo('stylesheet_directory');
register_default_headers( array (
'image1' => array (
'url' => "$yourchildtheme_dir/images/header-dark.jpg",
'thumbnail_url' => "$yourchildtheme_dir/images/header-dark-tn.jpg",
'description' => __( 'Default Image', 'yourchildtheme' )
),
'image2' => array (
'url' => "$yourchildtheme_dir/images/header-light.jpg",
'thumbnail_url' => "$yourchildtheme_dir/images/header-light-tn.jpg",
'description' => __( 'Image Description', 'yourchildtheme' )
)
));
}
add_action( 'after_setup_theme', 'yourchildtheme_setup' );
Any Ideas?