Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0
Skraton

Make Header only sticky on certain pages

Question

5 answers to this question

Recommended Posts

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

Share this post


Link to post
  • 0

It seems putting your code in a code-block on the page instead of the header has solved the problem. Thanks again!

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...