Jump to content

Sticky Navigation along with language switcher

Recommended Posts

Site URL: https://lifelab.world/

Hi Squarespace experts,

I have been trying to make the main nav bar to be sticky as I scroll through the website however I also have a language switcher. I am trying to add the language switcher on the code but I cannot seem to make it work. I also wanted this to work on mobile. 🙂

This is the main code that I also found here on the forum:

.Header.Header--top  {
    position: sticky;
    position: -webkit-sticky;
    top: 0px;
    z-index: 1000;
    width: 100%; }

Here is the code I am trying to add:

.Header.language  {
    position: sticky;
    position: -webkit-sticky;
    top: 0px;
    z-index: 1000;
    width: 100%; }

or 

.language  {
    position: sticky;
    position: -webkit-sticky;
    top: 0px;
    z-index: 1000;
    width: 100%; }

It doesn't seem to work the navigation bar does not follow along. I know I am almost there I am just having a hard time finding the right code.

 

Thank you in advance for your help.

Link to comment
  • Replies 1
  • Views 237
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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.