Jump to content

Recommended Posts

  • Replies 4
  • Views 517
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Posted
46 minutes ago, Joleanna said:

I'm trying to custom make a sticky side-bar for the side of my blog so that that when the reader scrolls the [sidebar] stays in view.

Hi Joleanna

As you've already added a column to the blog for the sidebar that takes up 3 of the available 12 columns, you should be able to make these 3 columns sticky by adding something like this to Design > Custom CSS:

.Main--blog-item .sqs-col-3 {
  top: 103px;
  position: -webkit-sticky;
  position: sticky;    
}

It targets just this 3-column sidebar on blog items only.

Let me know how you get on.

Paul

 

IB2efExAlC.thumb.gif.8a37cdf95b40895ab8c1c6a6f3e20c67.gif

 

Did this help? Please give feedback by clicking an icon below  ⬇️

Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.

  • 1 year later...
Posted
22 minutes ago, Itamar said:

any way I can make a sticky sidebar that will work to all similar elements? 

You can achieve this by applying the same CSS styling to the Fluid Engine block that you want to remain in place.

It would be a good idea to duplicate the title in the 'description' block so that the title and description are in the same block and will remain together on desktop. For example, if you add the title to the other block, and add this CSS it will be as illustrated below.

.fe-block-c34fe7d013e84b560ea6 {
  top: 96px;
  position: -webkit-sticky;
  position: sticky;    
}

image.gif.6f729d70a782cb2851302fa373e68264.gif

You can then hide the separate title on desktop, so that it only appears at the top of the page on mobile.

Did this help? Please give feedback by clicking an icon below  ⬇️

Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.

Posted

Thanks a lot, @paul2009! that's great!

2 question:

  1. What do you mean by 'description block'?
  2. How can I make this sticky option valid to desktop only? (above certain width) - so it doesn't interfere on mobile view.

 

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.