Skip to content

Instantly share code, notes, and snippets.

Created August 3, 2013 17:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/d518b37c4caf88d9b13b to your computer and use it in GitHub Desktop.
Save anonymous/d518b37c4caf88d9b13b to your computer and use it in GitHub Desktop.
<?php
// It's a new layout make the content wider
if ( ! isset( $content_width ) )
$content_width = 940;
/** Tell WordPress to run post_theme_setup() when the 'after_setup_theme' hook is run. */
add_action( 'after_setup_theme', 'post_theme_setup' );
if ( !function_exists( 'post_theme_setup' ) ):
function post_theme_setup() {
// The height and width of your custom header.
// Add a filter to twentyeleven_header_image_width and twentyeleven_header_image_height to change these values.
define( 'HEADER_IMAGE_WIDTH', apply_filters( 'twentyeleven_header_image_width', 1000 ) );
define( 'HEADER_IMAGE_HEIGHT', apply_filters( 'twentyeleven_header_image_height', 100 ) );
/* 1140 Remove Headers */
function child_remove_twenty_eleven_headers(){
unregister_default_headers( array(
'wheel',
'shore',
'trolley',
'pine-cone',
'chessboard',
'lanterns',
'willow' ,
'hanoi')
);
}
add_action( 'after_setup_theme', 'child_remove_twenty_eleven_headers', 11 );
}
endif;
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment