How to Add Back to Top Button in Squarespace

Do you want to add back to the top button in Squarespace? We will help you with that in just two steps. We make this with custom javascript and CSS code.

Download Free Header Templates For WordPress Elementor Site.

Add Back to Top Button in Squarespace

Please follow the below step to add scroll back to the top button in Squarespace.

Step 1: First copy below Javascript code.

<script>
  const body = document.querySelector('body');
  const cursor = document.createElement('button');
  cursor.className = "cursor";
  cursor.textContent = "⬆";

   body.appendChild(cursor);
   cursor.addEventListener("click", function(){
     window.scrollTo(0, 0);
 });
</script>

Step 2: Go to Setting > Advanced > Code Injection > Footer > Scroll Down > Paste Code in Footer

Squarespace footer injection code

Step 3: Now Copy Below CSS code

html{
  scroll-behavior: smooth !important;
}
.cursor{
    z-index: 10;
    position: fixed;
    bottom: 30px;
    right: 20px;
    border: none;
    outline: none;
    
  /* The Background color of the button. You can put your hex color instead of crimson*/
    background: blue;
  
  /* The color of the icon inside the button. You can put your hex color instead #fff*/
    color: #fff;
    padding: .8rem 1.3rem;
    border-radius: 50%;
  
  /* increase or decrease the icon font-size to make the button bigger or smaller */
    font-size: 1.3rem;
    font-weight: bold;
}
@media (max-width: 500px){
    .cursor{
        right: 10px;
        bottom: 45px;
    }
}

Step 4: Go to Design > Custom Css > Paste Above Code.

Squarespace custom code for Back to Top Button

We hope you found Add Back to Top Button in Squarespace post helpful. But if you still face any problems, then comment below.

Make Website With Drag and Drop Page Builder in 5 Mint.

How to change the email used in the contact form Squarespace

Some of the clients ask how do can I change the email address on the contact form? So, now I make a step-by-step tutorial for everyone who wants to know how to change the email used in the contact form Squarespace.

Check Our Free Elementor Templates For WordPress Websites.

Learn More About Elementor Page Builder.

Change the email used in the contact form Squarespace

Please follow the step to step guides.

Step 1: Go to the Contact form and click on the Edit icon.

Click on Edit Form squarespace

Step 2: Now click on Storage.

Click on Storage

Step 3: Now click on Email.

Click on Email

Step 4: Now here enter the email below the “Connected to” text.

Enter Email in Connect field

Step 5: Last click on Done and Save.

Save Squarespace page

It’s done now. Just go to the website and refresh the contact page and test the form is works or not. If you still face any problems then comment below.

Get Professional Websites