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="https://unpkg.com/vanilla-back-to-top@7.1.14/dist/vanilla-back-to-top.min.js"></script>
<script>addBackToTop()</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>