How to add a "back to top" button

With this plugin it's very easy to add a Back to Top button to a Squarespace site. Add the code below to Code Injection Footer Field.

<script src=""></script>

You can customize it how you want. For example, if you want to change a background color:

<script>addBackToTop({backgroundColor: 'rgb(255, 82, 82)'});</script>