Title: Custom header image with error
Last modified: August 21, 2016

---

# Custom header image with error

 *  [rohitroy256](https://wordpress.org/support/users/rohitroy256/)
 * (@rohitroy256)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/custom-header-image-with-error/)
 * I am using wordpress 3.5 and twentyten theme. I have brought in some changes 
   in the theme through using child theme. In order to change the header image size
   I used functions.php file with the following code.
 * <?php
 * function tnc_header_width($width) {
    $width =980; return $width;
 * function tnc_header_height($height) {
    $height = 224; return $height;
 * }
 * }
    add_filter( ‘twentyten_header_image_width’, ‘tnc_header_width’); add_filter(‘
   twentyten_header_image_height’, ‘tnc_header_height’);
 * ?>
 * It worked. But in the front end I am getting the following message
 * Warning: call_user_func_array() expects parameter 1 to be a valid callback, function‘
   tnc_header_height’ not found or invalid function name in C:\xampp\htdocs\wordpress\
   wp-includes\plugin.php on line 173
 * How can I remove the message? I opened plugin.php file, but I could not solve
   the problem. Please help me.

The topic ‘Custom header image with error’ is closed to new replies.

## Tags

 * [custom-header-image](https://wordpress.org/support/topic-tag/custom-header-image/)
 * [header](https://wordpress.org/support/topic-tag/header/)
 * [header image](https://wordpress.org/support/topic-tag/header-image/)
 * [image](https://wordpress.org/support/topic-tag/image/)

 * 0 replies
 * 1 participant
 * Last reply from: [rohitroy256](https://wordpress.org/support/users/rohitroy256/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/custom-header-image-with-error/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
