Title: Custom header for wordpress theme
Last modified: August 20, 2016

---

# Custom header for wordpress theme

 *  Resolved [Adil](https://wordpress.org/support/users/saanadil/)
 * (@saanadil)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/custom-header-for-wordpress-theme/)
 * I want to add custom header in theme creating in local server. I found code from
   page : [http://codex.wordpress.org/Custom_Headers](http://codex.wordpress.org/Custom_Headers)
   
   I update my functions.php page :
 *     ```
       add_theme_support( 'custom-header' );
   
       $defaults = array(
       	'default-image'          => '',
       	'random-default'         => false,
       	'width'                  => 0,
       	'height'                 => 0,
       	'flex-height'            => false,
       	'flex-width'             => false,
       	'default-text-color'     => '',
       	'header-text'            => true,
       	'uploads'                => true,
       	'wp-head-callback'       => '',
       	'admin-head-callback'    => '',
       	'admin-preview-callback' => '',
       );
       add_theme_support( 'custom-header', $defaults );
   
       $args = array(
       	'width'         => 980,
       	'height'        => 60,
       	'default-image' => get_template_directory_uri() . '/images/headers/jp-mountain@2x.jpg',
       );
       add_theme_support( 'custom-header', $args );
   
       I also edit in header.php : <img src="<?php header_image(); ?>"  alt="" />
       ```
   
 * _[Please use the code buttons or backticks when posting code here – as is, your
   code may have been corrupted.]_
 * but still not finding Appearance-> Header Screen.
 * Please help as soon as possible.
    Thanks in advance.
 * saanadil
 * _[Moderator note: If the issue is urgent, consider hiring someone at [http://jobs.wordpress.net](http://jobs.wordpress.net).
   Your bump has been removed.]_

Viewing 1 replies (of 1 total)

 *  Thread Starter [Adil](https://wordpress.org/support/users/saanadil/)
 * (@saanadil)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/custom-header-for-wordpress-theme/#post-3422456)
 * I solved this issue by reinstalling latest version of wordpress. I also changed
   width and height of above code myself.
    Thanks

Viewing 1 replies (of 1 total)

The topic ‘Custom header for wordpress theme’ is closed to new replies.

 * 1 reply
 * 1 participant
 * Last reply from: [Adil](https://wordpress.org/support/users/saanadil/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/custom-header-for-wordpress-theme/#post-3422456)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
