Title: shaig's Replies | WordPress.org

---

# shaig

  [  ](https://wordpress.org/support/users/shaig/)

 *   [Profile](https://wordpress.org/support/users/shaig/)
 *   [Topics Started](https://wordpress.org/support/users/shaig/topics/)
 *   [Replies Created](https://wordpress.org/support/users/shaig/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/shaig/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/shaig/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/shaig/engagements/)
 *   [Favorites](https://wordpress.org/support/users/shaig/favorites/)

 Search replies:

## Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)

 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Tiny Framework] [Theme: Tiny Framework] Changing header image height cleanly](https://wordpress.org/support/topic/changing-header-image-height-cleanly/)
 *  Thread Starter [shaig](https://wordpress.org/support/users/shaig/)
 * (@shaig)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/changing-header-image-height-cleanly/#post-6148191)
 * That did the trick. Thanks a bunch!
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Tiny Framework] [Theme: Tiny Framework] Changing header image height cleanly](https://wordpress.org/support/topic/changing-header-image-height-cleanly/)
 *  Thread Starter [shaig](https://wordpress.org/support/users/shaig/)
 * (@shaig)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/changing-header-image-height-cleanly/#post-6148170)
 * I tried overriding the parent theme by adding this block to the functions.php
   in the child:
 * >  require( get_template_directory() . ‘/inc/custom-header.php’ );
   >  }
 * to pick up the local inc/custom-header.php and modified that file as shown below
   but that generates a failure
    **Fatal error:** Cannot redeclare tinyframework_custom_header_setup()(
   previously declared in **/home/guthar5/public_html/wp-content/themes/tiny-framework/
   inc/custom-header.php**:21) in **/home/guthar5/public_html/wp-content/themes/
   tiny-framework/inc/custom-header.php **on line 65
 * >  <?php
   >  /** * Custom Header functionality for Tiny Framework. * [@link](https://wordpress.org/support/users/link/)
   > [https://codex.wordpress.org/Custom_Headers](https://codex.wordpress.org/Custom_Headers)**
   > [@package](https://wordpress.org/support/users/package/) Tiny_Framework * [@since](https://wordpress.org/support/users/since/)
   > Tiny Framework 1.0 */
   > // Child function override
   >  function remove_parent_theme_features() { remove_action(‘
   > after_setup_theme’, ‘tinyframework_custom_header_setup’ ); add_action( ‘after_setup_theme’,‘
   > child_tinyframework_custom_header_setup’ ); }
   > /**
   >  * Set up the WordPress core custom header arguments and settings. * * 
   > @uses add_theme_support() to register support for 3.4 and up * @uses tinyframework_header_style()
   > to style front-end * * [@since](https://wordpress.org/support/users/since/)
   > Tiny Framework 1.0 */ function child_tinyframework_custom_header_setup() { 
   > $args = array( // Text color and image (empty to use none). ‘default-text-color’
   > => ‘515151’, ‘default-image’ => ‘%2$s/images/headers/Tiny-Framework-header-
   > 01.jpg’,
   >  // Set height and width, with a maximum value for the width.
   >  ‘height’ => 
   > 200, ‘width’ => 960, ‘max-width’ => 2000,
   >  // Support flexible height and width.
   >  ‘flex-height’ => true, ‘flex-width’
   > => true,
   >  // Random image rotation off by default.
   >  ‘random-default’ => false,
   >  // Callbacks for styling the header and the admin preview.
   >  ‘wp-head-callback’
   > => ‘tinyframework_header_style’, );
   >  add_theme_support( ‘custom-header’, $args );
   >  /* Default custom headers packaged with the theme.
   >  * %s is a placeholder 
   > for the theme template directory URI. * %2$s is a placeholder for the (child)
   > theme stylesheet directory URI. * I’m using %2$s to make it easy for the user
   > to replace default header images in a child theme. * [@link](https://wordpress.org/support/users/link/)
   > [https://codex.wordpress.org/Function_Reference/register_default_headers](https://codex.wordpress.org/Function_Reference/register_default_headers)*/
   > register_default_headers( array( ‘First’ => array( ‘url’ => ‘%2$s/images/headers/
   > Tiny-Framework-header-01.jpg’, ‘thumbnail_url’ => ‘%2$s/images/headers/Tiny-
   > Framework-header-01-thumbnail.jpg’, ‘description’ => esc_html_x( ‘First’, ‘
   > header image description’, ‘tinyframework’ ) ), ‘Second’ => array( ‘url’ =>‘%
   > 2$s/images/headers/Tiny-Framework-header-02.jpg’, ‘thumbnail_url’ => ‘%2$s/
   > images/headers/Tiny-Framework-header-02-thumbnail.jpg’, ‘description’ => esc_html_x(‘
   > Second’, ‘header image description’, ‘tinyframework’ ) ), ‘Third’ => array(‘
   > url’ => ‘%2$s/images/headers/Tiny-Framework-header-03.jpg’, ‘thumbnail_url’
   > => ‘%2$s/images/headers/Tiny-Framework-header-03-thumbnail.jpg’, ‘description’
   > => esc_html_x( ‘Third’, ‘header image description’, ‘tinyframework’ ) ), ) );}
   > add_action( ‘after_setup_theme’, ‘child_tinyframework_custom_header_setup’ );
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Tiny Framework] [Theme: Tiny Framework] Changing header image height cleanly](https://wordpress.org/support/topic/changing-header-image-height-cleanly/)
 *  Thread Starter [shaig](https://wordpress.org/support/users/shaig/)
 * (@shaig)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/changing-header-image-height-cleanly/#post-6148152)
 * Thanks, but I appear stuck.
 * I added this to functions.php
 * >  // 3.10 – Tip07 – Add new image size for custom post/page headers and select
   > default header image.
   >  add_image_size( ‘custom-header-image’, 960, 150, true);//
   > Hardcrop
 * as you suggested, but it had no effect.
 * I couldn’t find Tip39 anywhere in style.css, including the documentation on your
   site which seems to end at Tip37. I also looked for header-image entries in the
   css that might be relevant but all I saw were border and padding values, which
   won’t help.
 * Is there an easy way to just include the custom-header.php file, change the height
   value, without having to copy all of the theme contents down to the child?
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Tiny Framework] [Theme: Tiny Framework] Changing header image height cleanly](https://wordpress.org/support/topic/changing-header-image-height-cleanly/)
 *  Thread Starter [shaig](https://wordpress.org/support/users/shaig/)
 * (@shaig)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/changing-header-image-height-cleanly/#post-6148145)
 * I tried that earlier, but I must be missing a key step as it doesn’t seem like
   the child theme’s inc/custom-header.php file is getting pulled in and instead
   it is still using the parent theme’s files.
 * Key notes are that the customization widget still offers a cropping for 960×350
   pixels and the displayed image is unchanged.

Viewing 4 replies - 1 through 4 (of 4 total)