Header Image & Hight

  • Unknown's avatar

    Hey,

    I just realized that in the theme I chose the header is not meant to be an image… is it still possible to do so and if yes… how?

    Also how to change the hight of the header? Right now it seems a bit big, especially on mobile phones and such.

    Thanks in advance

    Best regards
    Timmo

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Hi there, Timmo!

    Dropping this code in your custom CSS area should do the trick:

    .header-wrapper {
    	background-image: url(https://taiwantours.files.wordpress.com/2016/09/bopiliao-old-street.jpg?w=616);
    	background-repeat: no-repeat;
    	background-size: cover;
    }

    Then just replace the url with the url of the image you would like as the background.

    As for the header seeming big, I’m not seeing it as super massive etc on mobile. Is this still a problem?

    Let me know if that doesn’t work!
    Sage

  • Unknown's avatar

    It worked. Thanks a lot :)
    And for now I guess the size on mobile phones and tablets should be fine.

  • Unknown's avatar

    Huzzah! And no worries, happy to be of assistance ^_^

  • Unknown's avatar

    Hey,
    … I do have another question. I added now a picture as the background whih is the skyline of a city in the same color as my menu. I would like that it always looks like as if the city comes out of the menu.

    How can I manage it that it always scales correct? No matter if PC, tablet or smartphone. Right now it’s the correct picture.

  • Unknown's avatar

    Hi there,

    That sort of thing gets quite a bit trickier, but I can make it a bit better?

    If you remove the code I gave you earlier and replace it with this is should show more of the picture:

    .header-wrapper {
    	background-image: url(https://taiwantours.files.wordpress.com/2016/10/skyline_tp2.png);
    	background-repeat: no-repeat;
    	background-size: cover;
    	background-position: bottom center;
    }

    Hope that helps!
    Sage

  • Unknown's avatar

    That helps a bit, but not very much. I could resize the image so it would fit, but the problem is it will look different on every kind of screen with a different resoultion (no matter if PC, tablet or mobile).

    Is it somehow possible to make it scale with the page?

    Sorry for the trouble… and thanks!

  • Unknown's avatar

    Hey there,

    Yeah, sorry, it will change the image depending on the screen. The code I gave does scale with the page, but it might not show the entire image on all screens if that was what you were after. It gets a little tricky with that sort of thing especially without access to the code to put different things in place to ensure sizing etc.

    Sorry about that,
    Sage

  • The topic ‘Header Image & Hight’ is closed to new replies.