Created
March 17, 2012 15:49
-
-
Save senlin/2061385 to your computer and use it in GitHub Desktop.
wptips_new_default_header_images for forest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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