-
-
Save anonymous/d518b37c4caf88d9b13b to your computer and use it in GitHub Desktop.
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 | |
// 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