Jump to content

Make Header only sticky on certain pages

Recommended Posts

  • Replies 5
  • Views 597
  • Created
  • Last Reply
Posted
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.

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.