Drupal is a registered trademark of Dries Buytaert
drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

back_to_top

22,891 sites Security covered
View on drupal.org

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!

Activity

Total releases
1
First release
Mar 2025
Latest release
1 year ago
Release cadence
Stability
100% stable

Releases

Version Type Release date
3.0.3 Stable Mar 25, 2025