Jump to content

Make Header only sticky on certain pages

Recommended Posts

  • Replies 5
  • Created
  • Last Reply

Add to Page Settings > Advanced > Header to remove sticky header effect

<style>
  header.Header.Header--top {
    position: relative !important;
}
</style>

 

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 4/4/2020 at 4:05 AM, tuanphan said:

Add to Page Settings > Advanced > Header to remove sticky header effect


<style>
  header.Header.Header--top {
    position: relative !important;
}
</style>

 

Well, on a second glance it seems to only work after a manual refresh of the site in question. If I refresh my homepage then navigate to the gallery, the header is still sticky until I refresh the page, it then stays non-sticky for all pages I added the code to, until I do a refresh on a different page.

I'm guessing this is because I have Ajax loading enabled. Is there anything one could about this like force full reloads on these pages?

Thanks again.

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.