WordPress.org

Ready to get started?Download WordPress

Forums

Customized header Twenty Eleven (1 post)

  1. gawik
    Member
    Posted 1 year ago #

    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',
    );

    [moderator remark: please mark any posted code, for instance by using the 'code' button]

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic