Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Back To Top

22,075 sites Security covered Drupal 9–11
View on drupal.org

This module adds a "Back to Top" button that appears as you scroll down a page, allowing users to quickly return to the top with a smooth scroll effect. It offers customizable appearance, placement, and behavior options.

Back To Top adds a button that hovers in the bottom of your screen and allow users to smoothly scroll up the page using jQuery.

Drupal 10 and 11 info

Branch 3.x is a rewrite with new javascript and support for Drupal 10 and 11.

  • Support Drupal 9, 10 and 11
  • Removed dependencies of jquery ui, jquery ui effects (you can uninstall these modules)
  • Removed farbtastic
  • Use css media query instead of PHP for Prevent on mobile
  • Changed default setting for Prevent on mobile to FALSE (you probably want the button on touch devices)
  • Cleaned up code

Drupal 9 info

jQuery UI and jQuery UI Effects was deprecated in Drupal 8.8 and removed in Drupal 9. Branch 2.x have a depencency for the contributed modules jQuery UI and jQuery UI Effects. If you want to use Back To Top 8.x with Drupal 9 there are patches for this in this issue.

Settings

There are settings for:

  • Choosing between a image och text/css button
  • Placement of the button
  • Style of the text/css button
  • Preventing the button to appear in mobile or touch devices
  • Preventing the button to appear in admin
  • Speed of scroll
  • Trigger point for button visualization
  • Text on the button

Theming the button

You can theme or change image by theming on the ID backtotop.

<button id="backtotop" aria-label="Back to Top">Back to Top</button>

You can change the text Back To Top with the translation in Drupal.

Developer

The Back To Top Drupal module is designed and developed by acke (Mattias Axelsson) at Happiness Web Agency.

For news about Back To Top, follow me on X!

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
4
Tracked since
Oct 2024
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 4
Maintenance
Dormant

Release Timeline

Releases

Version Type Core Release date
3.0.3 Stable 9–11 Mar 25, 2025
3.0.2 Stable 9–11 Oct 21, 2024
3.0.1 Stable 9–11 Oct 18, 2024
3.0.x-dev Dev 9–11 Oct 17, 2024