• Resolved Tanyad

    (@tanyad)


    I know this topic has been brought up before and I have tried all the fixes previously offered, but I still cannot change the size of the header on my website.

    http://www.savesouthwestmuseum.com/

    The image is 980×226 and I have changed the code in both the custom header file and the CSS but Leaf keeps scaling it down.

    Where do I change the code so that the header will appear as 980×226?

    Thanks

    Tanya

Viewing 10 replies - 1 through 10 (of 10 total)
  • how did you end up adjusting the headeR?

    Thread Starter Tanyad

    (@tanyad)

    I finally found the Custom CSS section which is hidden at the very bottom of Leaf Options. I put in the code

    .site-header {padding: 0.0rem;}
    .site-header img {padding: 0 0 0 00px;max-width:210%;float:left;}

    as had been suggested on other posts (obviously I didn’t want any padding on my header) and it worked.

    Note though, the header is no longer responsive on the mobile site, but oh well.

    Nice, thanks!!!

    the header is no longer responsive on the mobile site

    @tanyad You have to use media queries for the responsiveness.

    Thread Starter Tanyad

    (@tanyad)

    Thanks Tizz. I have no idea how to write those!

    Replace
    .site-header img {padding: 0 0 0 00px;max-width:210%;float:left;}
    with

    @media only screen and (min-width: 770px) {
    .site-header img {padding: 0px;max-width:210%;float:left;}
    }

    (You may need to clear cache more than once before to see it in action)

    Thread Starter Tanyad

    (@tanyad)

    Hmm, didn’t work. 🙁 But thanks!

    Thread Starter Tanyad

    (@tanyad)

    Actually, classic case of PEBCAK.. have redone it and yes it works. Thanks again!

    You’re welcome

    @tanyad, I noticed that in some screen resolution, e.g. 1366×768, your header is like this.
    This issue is independent from the last code I gave you, but it depends on the header image, less large than the header size (in the demo of the theme this isn’t visible because is all white.)
    I think that you get the CSS from an old topic of mine, but in my case the usage is different because I have a transparent background.
    Maybe the quick solutions are two. One is to put an image of 1103px on the long side, after saving it for the web to keep it light as possible. The other is to add width:210%; to that code, this will stretch the image a little to cover the entire area, but I don’t know how it works with other resolutions. You can try what works better (different browsers and screen resolutions).

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Change header size’ is closed to new replies.