Jump to content

CSS code for sticky navigation on Brine Layout Pages

Go to solution Solved by Beyondspace,

Recommended Posts

Site URL: https://salamander-cowbell-y9xl.squarespace.com/

Hey all,

I am using the BRINE template and have managed to make my navigation bar stick to the top of the page on the index page when scrolling using the following code;

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

However on the regular pages such as About and Contact the navigation bar completely disappears leaving only the logo on the header bottom. (please see the attached files)

 

I should note I have placed the Primary navigation on the Header-Top and the logo on the Header-Bottom as I want the nav bar to have a separate background colour from the logo.

 

My website: https://salamander-cowbell-y9xl.squarespace.com/

Password: Adam2020

 

Thanks in advanced!

Adam

 

index_page.PNG

about.PNG

Link to comment
  • SpencerC changed the title to CSS code for sticky navigation on Brine Layout Pages
  • Solution

It should be

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

image.thumb.png.23b2acf0a3d43b406eebf8f2085e7cf3.png

 

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Lightbox Studio plugin
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment

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.