Fix for Twenty Seventeen’s stucking header (WordPress theme)

Lars Gerrit Kliesing / LGK
LGK Blog
Published in
1 min readFeb 28, 2019

For a long time I used the WordPress default theme “Twenty Seventeen” on my german blog Neue St. In general, the theme is pretty nice, but there’s a little „bug“ (?) that has bothered me for a while.

You can see it in the video above. When a page isn’t finished loading, the whole body seem to stuck over the header and then crashes in its actual place.

Here’s my fix for this:

body:not(.twentyseventeen-front-page) .custom-header {
margin-bottom: 72px;
}

--

--

Lars Gerrit Kliesing / LGK
LGK Blog

I’m a web developer, so you’ll primarily find posts about coding but also about design (UX/UI) on my Medium site.