Shape & icon

Shape
Icon

Shown next to the icon on the pill shape. Leave empty to use “Top”. Other shapes show the icon only.

What screen readers announce. Leave empty to use “Back to top”. On the pill shape it should contain the visible text.

Colours & effects

The ring fills as the visitor scrolls down the page. Pick a colour that stands out against your page background.

Position & behaviour

Position

0 keeps the button visible all the time.

Appear animation

Animation and smooth scrolling are switched off automatically for visitors who prefer reduced motion. The button is hidden when printing.

Text font

Credit

A small, visible ‘Widget by …’ link. Thanks for keeping it, you can turn it off.

Credit label background

The label sits just under the button on a small rounded chip, so it stays readable on any page colour.

Preview

Scroll the sample page above, then click the button to return to the top. Links are switched off in this preview.

Your code

Generating your code…

Squarespace

  1. Open Settings → Developer Tools → Code Injection (called Advanced in older versions). Code Injection depends on your plan, so check yours.
  2. Paste the code into the Footer box and save.
  3. View the live page, not the editor. The editor may not show sitewide code until you leave edit mode.
  4. If your site or template already has a back-to-top button, switch that one off so there is only one on the page.

Any other website

  1. Paste the code just before the closing </body> tag of your page or template.
  2. On WordPress, Wix, Shopify and similar builders, use the custom code or footer scripts area.

The button appears on every page that includes the code. If you paste it twice, only one button is created. The code makes no network requests and loads no libraries. Test it once on your live site on desktop and mobile after saving.

Runs in your browser. Nothing you enter is uploaded or stored.

How it works

Four steps. No plugin.

01

Choose the shape

A circle, rounded square or pill, with an arrow icon and optional label.

1 minute
02

Set colour and position

Colours, size, corner, offsets, and how far visitors scroll before it appears.

1 minute
03

Copy the snippet

One small block of code with the styles and script included.

10 seconds
04

Paste it into Code Injection

In Squarespace, open Settings, Developer Tools, Code Injection (it may be under Advanced in older versions) and paste it in the Footer box. Check your plan includes it, then view the live site.

2 minutes
Questions

Questions about the button.

Straight answers about this tool. If yours isn't here, ask me directly.

Average response·< 1 business day

Does it work on every page?

Yes, when it is pasted into Code Injection it loads on every page of the site.

Does it work with the Squarespace Back to Top setting?

Some templates have their own. If yours does, use one of them, not both.

Is it keyboard friendly?

Yes. It is a real button with a label, so it works with a keyboard and screen readers.

Does it respect reduced motion?

Yes. For visitors who ask their device to reduce motion, it jumps to the top without smooth scrolling.

What is the credit link?

A small, visible label next to the button that points back to this site. It is on by default and you can switch it off. It is marked nofollow.

The hosting I use

I host my own sites on Hostinger.

In my experience it's one of the best hosting options for small business websites, and it's the one I suggest. If you sign up through my link, I earn a small commission at no extra cost to you.

Check Hostinger plansAffiliate link
Free tools, plus a free website audit

Want help with the rest of your website?

These tools are free to use. If your site needs more than a back-to-top button, I design and build custom websites for small businesses, and I offer a free audit that shows you what to fix first.