Jump to content

How make the navigation menu/bar stick at the top of the screen while scrolling

Recommended Posts

Posted

Site URL: https://www.jeffreyzie.com/nextdoor

Hey guys, 

I'm looking to make the navigation bar stick at the top of the website anytime someone scrolls on the site. I'm mainly looking to do this so that the shopping cart is always in view while a visitor is scrolling down the site.

Is there a way to make this happen? 

Thank you

Creator of ivorycolors.net & stoplitteringtoday.org

Posted

Hello,

If you're using a 7.1 Template. You can do this by navigating to any page, click "Edit", and select "Edit Site Header". The menu will allow you to change the toggle switch for "Fixed Header" on or off.

If you're on version 7.0 using a compatible template family, you should be able to add the following code using the Custom CSS tool. Navigate from Home > Design > Custom CSS and paste the code below:

// Fixed Header //

.Header { 
  position: fixed;
  z-index: 9999;
  width: 100%;
}

-- Courtesy of Ghost Plugins.

Hope this helps!

-Dan

  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.