WordPress.org

Ready to get started?Download WordPress

Forums

Changing Size of Custom Header Image (3 posts)

  1. hamchapman
    Member
    Posted 2 years ago #

    Hi,

    Site: http://www.theapplesource.com

    I've got the iTheme2 theme installed on my site, and I would like to add a custom header, in this case, an image. I have successfully managed to do so, but the size of the header seems fixed and I cannot seem to make it smaller no matter what I try.

    I made a child version of the theme so I could edit it and I found this line in the header.php file:

    <img id="custom-header-image" src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" />

    I then found where the HEADER_IMAGE_WIDTH (and HEIGHT) references were (in functions.php), so I tried changing the numbers in there, but this gave all sorts or replication errors.

    So my question is how can I make it so that I can have a custom header, which is an image, which I can change the size of as well.

    Thanks a lot,

    Hamilton

  2. esmi
    Forum Moderator
    Posted 2 years ago #

  3. mixmastermichael
    Member
    Posted 2 years ago #

    so I'm thinking you were on the right track in the functions.php file, check around, usually those width / height sizes are in two different locations of that file which need to be changed.

Topic Closed

This topic has been closed to new replies.

About this Topic