Site logo

Archived topic

Stationary Navigation

6 replies · Started by Anonymous on September 9, 2014

Viewing posts 1–7 of 7

I use second navigation for a global header across multiple sites. I'd love for this to be stationary as the page scrolls, so the top navigation (set to Above the Header) stays in position as the page scrolls beneath it. Don't know if it can be done, but it's a suggestion... A [x] Stationary Navigation check box.

Hi David,

You can do this with some simple CSS:

.secondary-navigation {
      position:fixed;
      top:0;
      width: 100%;
}

That will make it so the nav always sticks to the top.

Let me know if you have any questions :)

Almost worked. The header moved up the 37px high that my top navigation is. I added this to compensate:

body {
	padding-top: 37px;
}

Perfect!

Wait! What? Where can I get secondary navigation? I was trying to make the main navigation stationary, but I also want to know if we are getting second or third menus anytime soon?

It's the newest addon available :)

Ooooooooooo, it's like Christmas! I missed that one. :)

This archived topic is closed to new replies.