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://cdn.jsdelivr.net/npm/vanilla-back-to-top@7/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>