Jump to content

How can I implement a sticky behavior for a category (archive block) that remains fixed when it reaches the header?

Recommended Posts

  • Replies 3
  • Views 1.3k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

  • 2 weeks later...
Posted

I see you removed Filters box, but if you need to sticky category links instead, you can use this code to Website Tools (under Not Linked) > Custom CSS

.products.collection-content-wrapper .nested-category-tree-wrapper>ul {
    position: sticky !important;
    position: -webkit-sticky !important;
    top: 200px;
    z-index: 999999;
}

 

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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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.