Website Building » Squarespace » How Do I Add a Scroll Button in Squarespace?

How Do I Add a Scroll Button in Squarespace?

Last updated on December 11, 2022 @ 1:04 am

There are a couple different ways that you can add a scroll button in Squarespace. One way is to use the built-in Scroll Button feature under the Design tab in the site editor. This will add a button to the bottom-right corner of your site that visitors can click to automatically scroll back to the top of the page.

Another way to add a scroll button is to use custom CSS. You can add CSS code to your site under the Advanced tab in the site editor. This method requires more code than using the built-in Scroll Button feature, but it gives you more control over where the button is placed and how it looks.

Here is some sample CSS code that you can use to add a scroll button to your site:

#scroll-button {
position: fixed;
bottom: 20px;
right: 20px;
width: 50px;
height: 50px;
background-color: #333;
border-radius: 50%; }

#scroll-button:hover {
background-color: #777; }

#scroll-button img {
position: relative;
top: 50%;
transform: translateY(-50%); /* this line centers the icon vertically */ }

PRO TIP: Please be aware that adding a scroll button to your Squarespace website may interfere with the natural scrolling function on some devices. If you do choose to add a scroll button, we recommend testing it on multiple devices to ensure that it works as intended.

To use this CSS code, simply copy and paste it into the Custom CSS editor and click Save. Then, add the following HTML code where you want your button to appear on your page:

< div id="scroll-button" > < img src="/path/to/icon" alt="Scroll Button" > < /div >

Be sure to replace “/path/to/icon” with the actual path to your icon image. You can upload icon images under the Assets tab in the site editor.

The Scroll Button feature and custom CSS are just two of the many ways that you can customize your Squarespace site. With a little creativity and some coding knowledge, you can create a unique and powerful website that reflects your brand and showcases your content in an engaging way.

Morgan Bash

Morgan Bash

Technology enthusiast and Co-Founder of Women Coders SF.