Jump to content

Sticky/Fixed Sidebar for Five template

Recommended Posts

Can you share your website URL?

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!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment

https://www.eastridgechiropractic.com/shop 

Password: Coffee

 

I currently have 2 options that I'm playing around with. Open to your suggestion about which would be a better solution.

1. The left-sided sidebar which I'd like to be sticky. 

2. I also found code for the sticky black buttons on the right side, but I do not know how to make them link up to the different sections on the page. This is the code used:

 

Quote

<ul class="tp-float-buttons">
        <li><a href="#">Home Care Products</a></li>
        <li><a href="#">Pregnancy Products    </a></li>
        <li><a href="#">Products for Kids    </a></li>
</ul>
<style>
ul.tp-float-buttons {
    position: fixed;
    top: 50%;
    right: 10px;
    z-index: 999;
    list-style: none;
    padding-left: 0;
    margin: 0;
}
ul.tp-float-buttons a {
    color: white;
    background-color: black;
    padding: 10px;
    margin-bottom: 10px !important;
    display: inline-block;
    min-width: 100px;
    text-align: center;
}
</style>

Link to comment
On 4/17/2023 at 11:47 PM, irenew said:

https://www.eastridgechiropractic.com/shop 

Password: Coffee

 

I currently have 2 options that I'm playing around with. Open to your suggestion about which would be a better solution.

1. The left-sided sidebar which I'd like to be sticky. 

2. I also found code for the sticky black buttons on the right side, but I do not know how to make them link up to the different sections on the page. This is the code used:

 

#2. I think I wrote that code a few years ago

For example this section

image.thumb.png.f2458bf0c7af31cced970029e82c9eff.png

you have a Code Block above it

<p id="prenatal-postpartum-products">
  </p>

just change this line

<li><a href="#">Pregnancy Products    </a></li>

to this

<li><a href="#prenatal-postpartum-products">Pregnancy Products    </a></li>

 

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!)

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.