Home Forums Trusted Pro Header Image size

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #2731
    planetshay
    Participant

    Can you please tell me what the Header image size is on both the Front Page and the other pages? I have tried to add an image and it keeps getting cut off. Thanks!

    #2732
    Andy
    Keymaster

    The header background image does not have a definitive fixed size.

    It is a background image that fills the header area.

    The size – and the width/height ratio – of the header area will vary depending on the size of the screen, so the background image will cover that area without stretching the image. This does mean that sometimes either the top/bottom or the sides may be “cut off”.

    If it didn’t “cut off”, the background image would either have to strech to cover the height or the width or to avoid stretching it would be cut short and you would have empty space at the top/bottom or the sides.

    I hope this helps to explain how the header background image works.

    #3031
    planetshay
    Participant

    Hi Andy!

    Is thee a way to make the header image bigger (height) on sub-pages? With the images I have been given it cuts them off and it is hard to tell what they are (so my client says). Here is an example page: http://wp.mondyglobal.com/products/134a/

    Thanks!

    #3032
    planetshay
    Participant

    Oh, and I only need it bigger in desktop view. It looks fine on tablet and phone views.

    #3036
    Andy
    Keymaster

    You could do something like this:

    @media screen and (min-width: 1025px){
        .main-header{
            height: 450px;
        }
    }

    obviously change 1025px and 450px to values suitable for your needs.

    #3039
    planetshay
    Participant

    Hi Andy!

    Thank you for your help. Yes, that did help, however, it made the title on the page “un-centered” in the header area. Please see below:

    Is there a way to fix this to make it centered in the space as it was before? (see below)

    Thanks 🙂

     

    #3040
    Andy
    Keymaster

    Try it with increased top padding on the title area

    @media screen and (min-width: 1025px){
        .main-header{
            height: 450px;
        }
        .header-title{
            padding-top: 160px;
        }
    }
    #3048
    planetshay
    Participant

    Perfect! Thank you SO much Andy 🙂

    #3049
    planetshay
    Participant

    Hi Again! I am so sorry about asking so many questions…as the above did work for my sub-pages, it has done something really strange to my home page. The content area is now on top of my slider, which for the most part I do not mind, I think it looks cool.

    However, if I resize my browser window, the main content area on the Home page “jumps” quit a ways below the header area for a short time, then goes back to the normal position (not above the Header area).

    Now, I am using a 23-24′ monitor, so when I start minimizing the browser window, this is when it happens. Is there any way to keep it where it is or at least the way it was before (similar to all the sub-pages)?

    Here are pictures of the progress:

    I hope this is making sense. If not, please go to the website and check out the Home page, then, resize your browser window slowly.

    As I said above, I don’t mind the window being on top of the slider (second photo) but I would like it be be that way all the time if that is possible, no matter what size screen it is on. If that is not possible, I just need it to go back to the way it was before in the first photo.

    Thank you!

    #3050
    Andy
    Keymaster

    Can you try this please

    .home .main-header{
        height: unset;
    }

    this *should* stop the header height being applied to the homepage, while still applied to other pages.

    #3051
    planetshay
    Participant

    Yes sir. That fixed it. You are awesome!!!!!!!!!!! Thank you 🙂

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Header Image size’ is closed to new replies.