• Resolved Adil

    (@saanadil)


    I want to add custom header in theme creating in local server. I found code from page : 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 . Your bump has been removed.]

Viewing 1 replies (of 1 total)
  • Thread Starter Adil

    (@saanadil)

    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.