Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // It's a wide layout so make the content wide
- 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.
- add_filter('twentyeleven_header_image_width', function($size) { return 1140; });
- add_filter('twentyeleven_header_image_height', function($size) { return 150; });
- /* 1140 Remove Headers */
- function elevenforty_remove_twenty_eleven_headers(){
- unregister_default_headers( array(
- 'wheel',
- 'shore',
- 'trolley',
- 'pine-cone',
- 'chessboard',
- 'lanterns',
- 'willow' ,
- 'hanoi')
- );
- }
- add_action( 'after_setup_theme', 'elevenforty_remove_twenty_eleven_headers', 11 );
- }
- endif;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement