Header not fully hidden?
-
Hi fellow-website fans,
I have an issue with my header, which I didn’t had before. I use the Twenty Fourteen Theme (create a childtheme as well). I use a custom header image and have previously succesfully hidden the header bar with the Website Title and search button. However, now something very strange happens:
When I load my page “sterkensoepeltrainen.nl” the header is indeed gone, but when you scroll even a little down, the header is still gone, but now it takes up space (same height as it would be if it would be visible). Now if you scroll completely to the top (so the header image is FULLY visible on your screen), that extra header space disappears again. I am clueless on how to fix this. Can anyone help me out? To adjust a few things on the childtheme, I have used this code in the CSS editor:
‘/* Dit zorgt ervoor dat de Header image volledig over de pagina gaat */
.site {
max-width: none;
}/* Dit zorgt voor volledige pagina breedte */
.content-area {
padding-top: 48px;
}.hentry {
margin: 0 auto 48px;
max-width: 672px;
}.site-content .entry-header,
.site-content .entry-content,
.site-content .entry-summary,
.site-content .entry-meta,
.page-content {
margin: 0 auto;
max-width: 90%;
text-align: justify;
}.page-content {
margin-bottom: 48px;
}/* Dit verwijderd de header tekst en de footer */
/* Dit zorgt voor een andere banner als het scherm te klein wordt */
@media only screen and (max-width:640px) {
#site-header img {
content: url(/Banner3.jpg);
}
}header {
display: none;
}#site-header img {
content: url(/Banner1.jpg);
max-width: none;
width: 100%;
}footer {
display: none;
}‘
The topic ‘Header not fully hidden?’ is closed to new replies.