rolo Sep 10, 2018 · 2:41 pm #10486
Hello, can you help me with some custom css code to hide a page header?
Thanks!
Hello, can you help me with some custom css code to hide a page header?
Thanks!
I was able to do it with this custom CSS
.page-id-8 .site-header { display: none; }
The problem is that it remains white space in place of header, now I need to move page content above…
Any idea?
Thanks!
All done, I copy the css code here in case someone needs it
Great for convertig a page to a LandingaPage (just replace page id number)
.page-id-8 .site-header { display: none;
max-height: 0px;
}
#page .masthead-sentinel{
margin-bottom:10px;
height:10px !important;
}Minor correction, here is the final version (just replace page id number)
.page-id-8 .site-header { display: none;
max-height: 0px;
}
.page-id-8 .masthead-sentinel{
margin-bottom:10px;
height:10px !important;
}Hi 🙂 Glad to see you’ve made progress. You could also use something like this:
.page-id-8 .site-header,
.page-id-8 .masthead-sentinel {
display: none;
}
.page-id-8 .site-content {
margin-top: 20px;
}All the best with your site.