Skip to content

Instantly share code, notes, and snippets.

@senlin
Created March 17, 2012 15:49
Show Gist options
  • Save senlin/2061385 to your computer and use it in GitHub Desktop.
Save senlin/2061385 to your computer and use it in GitHub Desktop.
wptips_new_default_header_images for forest
<?php
//ADD NEW DEFAULT HEADER IMAGES
function wptips_new_default_header_images() {
$child2011_dir = get_bloginfo('stylesheet_directory');
register_default_headers( array (
'image1' => array (
'url' => "$child2011_dir/images/banner1.jpg",
'thumbnail_url' => "$child2011_dir/images/image1-thumb.jpg", // 230 x 66px
'description' => __( 'Image Description', 'child2011' )
) // the last image does not get a comma
));
}
add_action( 'after_setup_theme', 'wptips_new_default_header_images' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment