Skip to content
Sign in
Back To Top Block icon

Back To Top Block

Adds a Back to Top button block that scrolls the page to the top when clicked.

Not scanned yet WordPress plugin 10 installs

Install in

No install steps yet

Follow the steps on the source page.

Back To Top Block adds one block, “Back To Top Block”, to the block editor. Place it where you want the button to appear, usually at the end of a long post or in a footer template part. Clicking the button scrolls the window to the top of the page.

The block settings panel has four controls:

  • Show or hide the up arrow icon.
  • Show or hide the button text. Hidden text is still read by screen readers.
  • Change the button text (default “Back to Top”, up to 50 characters).
  • Pick an image from the media library to replace the arrow icon.

The scroll is animated unless the visitor’s browser has reduced motion turned on, in which case it jumps. After the scroll, focus moves to the top of the page through the theme’s skip link when one exists.

The button is a plain <button> with an aria-label and an outline on keyboard focus. Text, background, spacing and typography can be set through the block’s style controls.

Button text is sanitized on save. Icon URLs are limited to the site’s own domain; an icon URL on another domain is dropped.

Written by Joobi from the project's own listing. See the source page

back to topblocknavigationscrollscroll to top
25 Nov 2026
Version 1.0.6 released. Not scanned yet.

1.0.6

  • Tested up to WordPress 7.2.
  • Rewrote the plugin description and FAQ in plain English.

1.0.5

  • Tested up to WordPress 7.1.
  • Upgraded the build tooling to @wordpress/scripts 37.

1.0.4

  • Fixed blocks saved with older versions showing a validation error in the editor.
  • Updated the build tooling and added Jest and PHPUnit tests.
  • Tested up to WordPress 7.0.

1.0.3

  • Added server-side sanitization of the button text and icon URL attributes.
  • Rejected icon URLs that point to another domain.
  • Added the back_to_top_block_args filter for block registration arguments.
  • Fixed the button text fallback when the text is empty.
  • Added a fallback for browsers that do not support the scrollTo options object.

1.0.2

  • Improved focus management after the scroll finishes.
  • Minor accessibility improvements.

1.0.1

  • First release: button block with text and icon toggles, custom icon upload and smooth scrolling.

1.0.0

  • Initial commit with the Playground blueprint and demo content.
13 Dec 2024Listed on Joobi from WordPress.org.

Follow this listing's changes (Atom feed)