Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Tested code by Digital Raindrops
- * Make sure you can recover if there is an error
- */
- add_action( 'after_setup_theme', 'child_theme_setup' );
- /** This function will hold any new calls and over-rides */
- if ( !function_exists( 'child_theme_setup' ) ):
- function child_theme_setup() {
- /* Remove Filter and Apply a New Size */
- remove_filter( 'brunelleschi_header_image_height', 198);
- define( 'HEADER_IMAGE_HEIGHT', apply_filters( 'brunelleschi_header_image_height', 300) );
- /* 1140 Remove Headers */
- function remove_parents_headers(){
- unregister_default_headers( array(
- 'beach',
- 'fog',
- 'grass')
- );
- }
- add_action( 'after_setup_theme', 'remove_parents_headers', 11 );
- /* Get a new default header from the child themes folder */
- if( file_exists( get_stylesheet_directory() .'/images/default-header.png' ) )
- define( 'HEADER_IMAGE', get_stylesheet_directory() .'/images/default-header.png' );
- }
- endif;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement