You were close. Once you set position: fixed on the header area, it takes it out of the document flow, leading to it overlapping the content area. You need to set a z-index on the header area so it stacks above the content area and then give the content area some top margin so all the content can be seen:
#masthead {
position: fixed;
width: 100%;
z-index: 50;
}
.main-content-area {
margin-top: 350px;
}
Also, be aware that if you’re editing the theme files directly (using Dashboard > Appearance > Editor or cPanel or some other file management application), you’ll lose those changes if the theme is ever updated in the future. Better to use a custom CSS plugin or your theme’s built-in custom CSS option, if one exists.
Thread Starter
eb2323
(@eb2323)
awesome! that z-index: 50 worked like a charm!
Thanks dude! you’re the real mvp!
Thread Starter
eb2323
(@eb2323)
Hello again Stephen,
I have one more question:
is there a way to make just the top menu links static (fixed)?
so when I scroll, the banner disappears up top, but the links will move into place and stay… like this: http://i.imgur.com/TErJ2m3.jpg
thanks again