Website Building » Squarespace » How Do I Freeze the Navigation Bar in Squarespace?

How Do I Freeze the Navigation Bar in Squarespace?

Last updated on December 21, 2022 @ 4:41 pm

There are a few different ways to freeze the navigation bar in Squarespace. One way is to use the code injection feature to add some custom CSS.

Another way is to use a third-party plugin. And finally, you can use the Squarespace Developer Platform to create a custom solution.

Let’s take a look at each of these methods in more detail.

Code Injection

You can use code injection to add custom CSS to your site. This is a great option if you’re comfortable working with code and want to have full control over the look and feel of your site.

PRO TIP: If you are considering freezing the navigation bar in Squarespace, please be aware that this may adversely affect your site’s performance. In particular, it may make your site slower to load and may cause problems with scrolling. Additionally, this may make it more difficult for visitors to navigate your site.

To get started, go to the Settings panel and click on the Code Injection tab. Then, add the following CSS code:

#header {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 99;
}

#sidebar {
position: fixed;
top: 60px;
left: 0;
bottom: 0;
width: 200px;
overflow-y: auto;
z-index: 98;
}

Drew Clemente

Drew Clemente

Devops & Sysadmin engineer. I basically build infrastructure online.