Customized header Twenty Eleven

  • Unknown's avatar

    I have a header that measure 321x82px that I want to use. I have changed the width and height in the function.php file to 321x82px and when I go to the header under appearance it is the correct information, header should be 321x82px and I upload a file with the correct size but for some reason it will appear 1000x200px, i.e default size on the site. It stretch out the image.

    Any suggestions what might be wrong? I’m using version 3.4.1

    $custom_header_support = array(
    // The default header text color.
    ‘default-text-color’ => ‘000’,
    // The height and width of our custom header.
    ‘width’ => apply_filters( ‘twentyeleven_header_image_width’, 321 ),
    ‘height’ => apply_filters( ‘twentyeleven_header_image_height’, 82 ),
    // Support flexible heights.
    ‘flex-height’ => true,
    // Random image rotation by default.
    ‘random-default’ => true,
    // Callback for styling the header.
    ‘wp-head-callback’ => ‘twentyeleven_header_style’,
    // Callback for styling the header preview in the admin.
    ‘admin-head-callback’ => ‘twentyeleven_admin_header_style’,
    // Callback used to display the header preview in the admin.
    ‘admin-preview-callback’ => ‘twentyeleven_admin_header_image’,
    );

    Thanks

  • Unknown's avatar

    You did not specify a blog address or reason for posting when you created this topic.

    This support forum is for blogs hosted at WordPress.com. If your question is about a self-hosted WordPress blog then you’ll find help at the WordPress.org forums.

    If you don’t understand the difference between WordPress.com and WordPress.org, you may find this information helpful.

    If you forgot to include a link to your blog, you can reply and include it below. It’ll help people to answer your question.

    This is an automated message.

  • The topic ‘Customized header Twenty Eleven’ is closed to new replies.