Viewing 15 replies - 1 through 15 (of 26 total)
  • Try changing the following in the style.css file (line 23) from:

    body div#wrapper {
    margin:2em auto;
    text-align:left;
    }

    to

    body div#wrapper {
    margin:0em auto;
    text-align:left;
    }

    That is an obvious change that will reduce the header a bit.

    there is way you will have to add a function that will override the default size
    Since you new how comfortable are to adding codes to function.php and header.php files.?

    @govpatel Function to override the default size of what? This sounds like a pure CSS tweak. What function did you have in mind exactly?

    Moderator t-p

    (@t-p)

    I noticed this is pretty often asked question in this forum. So if you search the forum for say “header height”, you will find lots of info.

    I just pluggined in “header height” in the search and I came up with 32,000 hits!

    @t-p: True but although I would never discourage people from searching the forums first, the fixes do tend to vary wildly from theme to theme.

    I am using twentyten child theme that has a header of 940 by 198 and I have changed the size of image in child theme function.php by using function.

    add_filter(‘twentyten_header_image_height’,’my_header_height’);
    add_filter(‘twentyten_header_image_width’,’my_header_width’);
    function my_header_height($size){
    return 100;
    }
    function my_header_width($size){
    return 700;
    }

    May be this theme is different.

    Moderator t-p

    (@t-p)

    @esmi

    point well taken.

    I use Twenty Ten theme, so I always narrow down my search to twenty ten. for example, “header height in Twenty Ten”….

    Clicking on the link in the original post the theme is obviously not Twenty Ten! ??

    The theme does not appear to use the new WordPress header image function, like the Twenty Ten theme does, so is not likely to work.

    Thread Starter bovic21

    (@bovic21)

    dgwyer, I made your change, and thanks for that. But I wanted shorten it more, so I played around with the function.php and now I can’t get into my site. I get this message:

    Parse error: syntax error, unexpected T_STRING in /home/bovic/public_html/silkpajamasforwomen.com/wp-content/themes/simplr/functions.php on line 798

    What should I do now? Thanks.

    Your theme does not use function so to get your site back you will have to log in your host account and replace function.php with original function.php file that came with theme in this
    /public_html/silkpajamasforwomen.com/wp-content/themes/simplr

    Thread Starter bovic21

    (@bovic21)

    Thanks govpatel, I got my site back.

    But I just cannot seem to find where to edit my header height?

    do mean you want to move the background up and close all that white space if so I will check and see how you can do that.

    Thread Starter bovic21

    (@bovic21)

    Yes, govpatel, I want to close some of the white area at the top, thanks.

    you are not using header image as such and I see you using a iframe for the content from amazon I am checking the code and see if I can find how you can close that up and other thing I noticed is that you have to much height on that iframe 4000 you can change that to a smaller number so that you do not have background all way down.

    Thread Starter bovic21

    (@bovic21)

    If I close up the background on this page, and go to the next page, will it also be shorter. I’m showing product reviews if someone clicks on a product and that takes up a lot more background. Thanks.

Viewing 15 replies - 1 through 15 (of 26 total)
  • The topic ‘How do I change my header height’ is closed to new replies.