Jump to content

Sticky Code no longer working on homepage.

Recommended Posts

The sticky code I used to make the section with the search bar stick in place doesn't seem to be working anymore. The code is working on all the other pages. Any suggestions?

This is the code I am using that seems to no longer be recognized on the home page, it's fine on all the other pages. 

<style>
section[data-section-id="63a610e521c4b266a9e1c17e"]
  {
        position: -webkit-sticky!important;
        position: sticky!important;
        top: 10px;
        z-index: 99999;
    }
</style>

https://www.bikefactoryhawaii.com/

Link to comment

The section ID is wrong if that code is for the homepage, this is the correct one:

section[data-section-id="63a610e521c4b266a9e1c17e"]

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️ Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment
3 hours ago, Ziggy said:

The section ID is wrong if that code is for the homepage, this is the correct one:

section[data-section-id="63a610e521c4b266a9e1c17e"]

This is the same section ID in my code or am I overlooking something?

<style>
section[data-section-id="63a610e521c4b266a9e1c17e"]
  {
        position: -webkit-sticky!important;
        position: sticky!important;
        top: 10px;
        z-index: 99999;
    }
</style>
 

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.