Sticky Header issues
-
Hi there… i’ve been using some of the snippets you’ve provided on your website for the sticky header. I’ve been going around in circles with one small problem though and I just can’t seem to find the solution.
In the comments here: http://www.themesandco.com/snippet/make-header-sticky/, I notice that Mac (who has commented) also had a similar problem.When I use the code as you’ve provided it
/* Make Header 'Sticky' */ .tc-header { position: fixed; top: 0px; background-color: #fff; z-index: 100; width: 100%; }using the section in bold results in the header showing UNDERNEATH the admin bar when logged in.
When I remove this line, it becomes fixed below the admin bar when logged in, which is great. BUT this works ONLY on the home page. on every other page, it is about 18px BELOW the admin bar when logged in and below the browser bar when not logged in.
Any help would be incredibly appreciated. I just cannot understand why it would not be a universal change across the board for all the pages?
The topic ‘Sticky Header issues’ is closed to new replies.
