• Hi,
    Im using moesia because I found it very nice looking. Now I want that the user dont have to scroll every time the header (wich is biig) if he arrive to a post.
    Now when I click on a post I get redirected and i need to scroll down the header to see the content of the post.
    There is any way to condicionate the visibility of the header only to the homepage?

    Thanks for your work

    Bruno

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello Bruno,

    Please try adding the below CSS code to Appearance > Customize > Additional CSS from dashboard.

    
    .home #masthead.site-header {
      max-height: calc(100vh - 300px) !important;
    }
    
    @media only screen and (max-width: 800px) {
      max-height: calc(100vh - 100px) !important;
    }
    

    Regards,
    Kharis

    hi Kharis,

    Hope it’s okay that I jump in as Im having the same issue. I tried to add the CSS code but it won’t allow me to publish. Seems this part —

    @media only screen and (max-width: 800px) {
    max-height: calc(100vh – 100px) !important;
    }

    has 2 errors in it.

    Can you help as I’d like to have no header on pages that aren’t the front page.

    Thanks!
    Meg

    I especially also want to have no header on the posts.

    Thread Starter brunoloops

    (@brunoloops)

    Hi Kharis,
    Thanks for your answer, sorry for the delay, I miss the email notificiation.
    I tried what you suggest but as mgehan said wp find 2 errors on it, and it doesn’t work. That just make the header smaller on the front page but is still big in others page like in a simple post page.
    I would like to remove it from there.

    Thanks

    B

    Hey Bruno!

    I found this code that works. You edit that XXXX to be the number of the post which you can find in the url. I have to add that CSS for every post, but it works!

    .postid-XXXX #masthead.site-header {
    display: none;

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Hide header in page’ is closed to new replies.