• Resolved jamesnotjamie

    (@jamesnotjamie)


    Hi,

    I have searched, but to no avail.

    How can I change the header in TwentyTen, through the code, not the admin interface?

    Reason being is that the uploader keeps stretching my image (as it’s smaller dimensions to the original header).

    I found what I believe to be the function for setting the header in ‘funtions.php’ and have changed the following variables:

    define( 'HEADER_IMAGE', 'https://arabellamusic.co.uk/images/headerthree.gif' );
    This is the url to my header

    define( 'HEADER_IMAGE_WIDTH', apply_filters( 'twentyten_header_image_width', 889 ) );
    	define( 'HEADER_IMAGE_HEIGHT', apply_filters( 'twentyten_header_image_height', 185 ) );

    These are the dimensions of my header.

    Can anyone point me in the right direction?

    The address of the blog is:

    Thanks,
    James

Viewing 4 replies - 1 through 4 (of 4 total)
  • in header.php, find the following:

    <img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" />

    and change it to your fixed data (image src, width, height)

    yes or in function.php.

    Thread Starter jamesnotjamie

    (@jamesnotjamie)

    Thanks,

    So obvious when it’s pointed out, I feel so stupid!

    Live and learn.

    Thanks again,
    James

    Hi

    Can you tell me how to get rid of the black bar beneath the header –I guess the menu bar. I really don’t want it there or the border above.

    I’d like to get rid of it completely, but if that isn’t possible, how do I change it to a different colour?

    thanks,

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Change TwentyTen Header’ is closed to new replies.