WordPress.org

Ready to get started?Download WordPress

Forums

TwentyXS
[resolved] Change size of header but keep the proportion (4 posts)

  1. ehorna
    Member
    Posted 2 years ago #

    Hi,

    I need some help with my header. I want to change the size from 500x105 to 500x150/200. I know I can put in "#branding img { height: 150px; }" but this makes the proportion all wrong. I want to be able to upload a headerimage with the size 500x150/200 without having to cut it later. Is this possible to change with some CSS or something?

    My website: http://www.estershorna.com/

    http://wordpress.org/extend/themes/twentyxs/

  2. Andrew
    Forum Moderator
    Posted 2 years ago #

    Sorry what do you mean 500x150/200 (width, height, ???)

  3. ehorna
    Member
    Posted 2 years ago #

    Oh, sorry. I mean 500px (width) and 150px or 200px (height).

  4. ehorna
    Member
    Posted 2 years ago #

    I found it by myself.

    This is how I did (and it worked for me):

    Go in to the template file "function.php" and search for "define( 'HEADER_IMAGE_HEIGHT'" and then change the value 105 to the size you want.
    (In my case 150 or 200px)

    But remember to keep a record of the changes you make in the template file. Because if the theme gets upgraded your changes will be lost and You might not remeber where you did all your changes. :)

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags