Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function twentythirteen_custom_header_setup() {
- $args = array(
- // Text color and image (empty to use none).
- 'default-text-color' => '220e10',
- 'default-image' => '%s/images/headers/circle.png',
- // Set height and width, with a maximum value for the width.
- 'height' => 230,
- 'width' => 1600,
- // Callbacks for styling the header and the admin preview.
- 'wp-head-callback' => 'twentythirteen_header_style',
- 'admin-head-callback' => 'twentythirteen_admin_header_style',
- 'admin-preview-callback' => 'twentythirteen_admin_header_image',
- );
- add_theme_support( 'custom-header', $args );
- /*
- * Default custom headers packaged with the theme.
- * %s is a placeholder for the theme template directory URI.
- */
- register_default_headers( array(
- 'circle' => array(
- 'url' => '%s/images/headers/circle.png',
- 'thumbnail_url' => '%s/images/headers/circle-thumbnail.png',
- 'description' => _x( 'Circle', 'header image description', 'twentythirteen' )
- ),
- 'diamond' => array(
- 'url' => '%s/images/headers/diamond.png',
- 'thumbnail_url' => '%s/images/headers/diamond-thumbnail.png',
- 'description' => _x( 'Diamond', 'header image description', 'twentythirteen' )
- ),
- 'star' => array(
- 'url' => '%s/images/headers/star.png',
- 'thumbnail_url' => '%s/images/headers/star-thumbnail.png',
- 'description' => _x( 'Star', 'header image description', 'twentythirteen' )
- ),
- ) );
- add_action( 'admin_print_styles-appearance_page_custom-header', 'twentythirteen_fonts' );
- }
- add_action( 'after_setup_theme', 'twentythirteen_custom_header_setup' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement