SHOW:
|
|
- or go back to the newest paste.
1 | <?php | |
2 | /** | |
3 | - | * Un-Tested code by Digital Raindrops |
3 | + | * Tested code by Digital Raindrops |
4 | * Make sure you can recover if there is an error | |
5 | */ | |
6 | ||
7 | add_action( 'after_setup_theme', 'child_theme_setup' ); | |
8 | ||
9 | /** This function will hold any new calls and over-rides */ | |
10 | if ( !function_exists( 'child_theme_setup' ) ): | |
11 | function child_theme_setup() { | |
12 | ||
13 | /* Remove Filter and Apply a New Size */ | |
14 | - | remove_filters( 'brunelleschi_header_image_height'); |
14 | + | remove_filter( 'brunelleschi_header_image_height', 198); |
15 | define( 'HEADER_IMAGE_HEIGHT', apply_filters( 'brunelleschi_header_image_height', 300) ); | |
16 | ||
17 | /* 1140 Remove Headers */ | |
18 | function remove_parents_headers(){ | |
19 | unregister_default_headers( array( | |
20 | 'beach', | |
21 | 'fog', | |
22 | 'grass') | |
23 | ); | |
24 | } | |
25 | add_action( 'after_setup_theme', 'remove_parents_headers', 11 ); | |
26 | ||
27 | /* Get a new default header from the child themes folder */ | |
28 | if( file_exists( get_stylesheet_directory() .'/images/default-header.png' ) ) | |
29 | define( 'HEADER_IMAGE', get_stylesheet_directory() .'/images/default-header.png' ); | |
30 | } | |
31 | endif; |