Jump to content

Fixed Header on ONE page

Go to solution Solved by tuanphan,

Recommended Posts

  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

What do you to set on About page?

image.thumb.png.98f01aeaede59705a2710b7b2ef6a1e6.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, Keyword Highlighter
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
On 12/22/2022 at 5:28 AM, kaydotjpg said:

https://pomegranate-aardvark-8rjz.squarespace.com/
password: mamaswhodream

Hi! I am trying to have a fixed header on only one of my pages, the "about" page. One thing that might be important to note is that I am using SquareKicker and am using the Sticky Section just below the header. 

Add to Design > Custom CSS

/* Sticky about header */
body#collection-63a0b40a6d998b5acd339c58 header#header {
    position: sticky;
    top: 0;
}
body#collection-63a0b40a6d998b5acd339c58 section:first-child {
    padding-top: 0px !important;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
On 12/27/2022 at 9:14 PM, kaydotjpg said:

@tuanphan hmm, for some reason, this code is working for only the home page- when I want this to work for the "about" page. 

Just change id to about page id

/* Sticky about header */
body#collection-618aa47cbf7c754758787248 header#header {
    position: sticky;
    top: 0;
}
body#collection-618aa47cbf7c754758787248 section:first-child {
    padding-top: 0px !important;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

@tuanphan thanks for this, but I added it, and it's sticking, but now the header has suddenly change to the color tan, instead of green. I would like the header to stick and be the solid green color and be fixed- so the text scrolls under the header. Can you help me with this? I left it on there so you can see

 

Edited by kaydotjpg
Link to comment
  • Solution
On 12/29/2022 at 9:46 PM, kaydotjpg said:

@tuanphan thanks for this, but I added it, and it's sticking, but now the header has suddenly change to the color tan, instead of green. I would like the header to stick and be the solid green color and be fixed- so the text scrolls under the header. Can you help me with this? I left it on there so you can see

 

You can add background-color into first code to achieve this

body#collection-618aa47cbf7c754758787248 header#header {
    position: sticky;
    top: 0;
    background-color: green !important;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.