Jump to content

CSS Table Of Contents Sticky On Posts

Recommended Posts

Site URL: https://www.joshuaschweigert.com/

Hello,

I'm trying to get the same styled sticky table of contents that appear on my pages to have the same functionality on posts. I can't seem to figure out why I'm not getting the same result when I use the target ID.

Page Where It Works: https://www.joshuaschweigert.com/about-me

Post Where It Doesn't Work: https://www.joshuaschweigert.com/about-me

Would greatly appreciate some assistance, thank you!

Warm Regards,

Joshua Schweigert

Link to comment
  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

19 hours ago, thejschweigert said:

Site URL: https://www.joshuaschweigert.com/

Hello,

I'm trying to get the same styled sticky table of contents that appear on my pages to have the same functionality on posts. I can't seem to figure out why I'm not getting the same result when I use the target ID.

Page Where It Works: https://www.joshuaschweigert.com/about-me

Post Where It Doesn't Work: https://www.joshuaschweigert.com/about-me

Would greatly appreciate some assistance, thank you!

Warm Regards,

Joshua Schweigert

2 above links is the same and sticky table works properly. Have you figured it out? Do you still need help?

Edited by bangank36

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment
7 hours ago, thejschweigert said:

I apologize, here's the link where it doesn't work. I just need help finding the identifier for the block, thank you!

https://www.joshuaschweigert.com/be-kind-updates/introducing-be-kind-an-initiative-raising-awareness-to-global-causes

Add this CSS

@media screen and (min-width:768px) {
div#item-61b8d2ee0164f61217fc27a3 .span-12>.row>.span-3 {
    position: sticky;
    position: -webkit-sticky;
    top: 0;
}
}

 

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

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.