ForumCrafts — plugins, themes, extensions, add-ons & tools for real boards — tools for real boardsDownloads & licences →

Back to Top Add-on for XenForo

XENFORO ADDON free
Not rated yet Be the first

A floating pill that appears once you scroll, and takes you back to the top in one tap.

A small, single-purpose add-on: one button, fixed to the bottom-right corner, that stays out of the way until someone has scrolled a reasonable distance down a page.

What it gives you:

- A floating "Top" pill with an arrow, in the board's own accent style.
- Appears after 340 pixels of scrolling, hides again at the top, and never flashes on short pages.
- Smooth scrolling that the browser does itself, so a visitor who asked their system for reduced motion gets an instant jump instead of an animation.
- A passive scroll listener, so it cannot slow the page down.

No options screen, no database tables, nothing to configure: install it and the pill is there.

What's included

  • Floating Top pill in the bottom-right corner
  • Appears after 340px of scrolling, hides again at the top
  • Smooth scroll through the browser's own behaviour, instant for reduced-motion visitors
  • Passive scroll listener - no jank, no layout work on scroll
  • Keyboard reachable link with an aria-label, not a bare icon
  • No database changes, no options, no external requests

At a glance

PlatformXenForo add-on
Latest versionv1.0.0
Download size15.0 KB
Released25 Oct 2026
Downloads0
AccessFree — sign in to download
PlatformXenForo 2.2 or newer (built to 2.2/2.3 conventions)
Add-on IDDataForums/BackToTop
Version1.0.0
PHP7.4 or newer
Template modifiedPAGE_CONTAINER (one str_replace on </body>)
Database changesnone
Optionsnone
LicenceGPL-3.0-or-later

Requirements

  • XenForo 2.2.0 or newer
  • PHP 7.4 or newer (the Setup class is syntax-checked on PHP 8.4)
  • The stock PAGE_CONTAINER template, so the </body> anchor is present
  • No configuration afterwards - enabling the add-on is all of it

Checksum

Verify your download before you upload it to your board.

3c5dcd4e4c7dcfed876fb7f8da1067d815c572e97c0b6e5a31aa8c1dbd5ebdf3

Install it

1. Admin CP > Add-ons > Install from archive, choose df-xenforo-back-to-top-1.0.0.zip, then Install.
2. Alternatively unzip it and copy the folder to src/addons/DataForums/BackToTop/ on your server, then click Install on the add-on row.
3. Open any long thread: the pill appears in the bottom-right corner after a short scroll.
4. To remove it: Disable first to confirm the pill disappears, then Uninstall. Nothing is left behind - it never wrote to the database.

Questions people ask

Does it load anything from outside my board?

No. The button, its style and its behaviour are all in the one template modification - no external scripts, fonts or requests. Can I change when the button appears? Yes, edit the single number (340) in the template modification under Appearance > Template modifications. Will it break my theme? It only adds markup next to </body> and uses its own dfxf- class names, so it inherits nothing from your theme and overrides nothing.

All releases

VersionReleasedSizeDownloadsChangelog
v1.0.0 latest 25 Oct 2026 15.0 KB 0 1.0.0 - first ForumCrafts release of this XenForo add-on. Built to the XenForo 2.2/2.3 add-on conventions: addon.json, a standard Setup class and one template modification. Verified before release: addon.json parses, Setup.php passes php -l, the data XML is well-formed, and the injected markup and JavaScript were exercised in a real browser (the pill appears and returns to the top, the bar dismisses and stays dismissed, the links resolve, the clocks tick, the progress bar fills, the reading-time chip counts the words).

Ratings & reviews

No ratings yet — the first one will be real, not seeded

More XenForo add-ons

All XenForo add-ons