PHPackages                             anasstouaticoder/magento2-module-backtotop - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. anasstouaticoder/magento2-module-backtotop

ActiveMagento2-module[Utility &amp; Helpers](/categories/utility)

anasstouaticoder/magento2-module-backtotop
==========================================

The Back To Top module enhances user control over page navigation by providing an easy way to return to the top of the page. This module is compatible with Luma, Hyva, and other Magento themes.

1.0.3(1y ago)64MITPHPPHP ~7.4.0||~8.1||~8.2

Since Jan 27Pushed 1y ago1 watchersCompare

[ Source](https://github.com/anasstouaticoder/magento2-module-back-to-top)[ Packagist](https://packagist.org/packages/anasstouaticoder/magento2-module-backtotop)[ RSS](/packages/anasstouaticoder-magento2-module-backtotop/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (2)Versions (5)Used By (0)

Magento 2 Module AnassTouatiCoder BackToTop
===========================================

[](#magento-2-module-anasstouaticoder-backtotop)

Copy field path and value, display its override values in parent scope

 [![Supported Magento Versions](https://camo.githubusercontent.com/2113b3a30955562f026a2b7dda3a09fee30d0c49aacbfce67193c5dc7b434617/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d6167656e746f2d322e342d627269676874677265656e2e7376673f6c6f676f3d6d6167656e746f266c6f6e6743616368653d74727565267374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/2113b3a30955562f026a2b7dda3a09fee30d0c49aacbfce67193c5dc7b434617/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d6167656e746f2d322e342d627269676874677265656e2e7376673f6c6f676f3d6d6167656e746f266c6f6e6743616368653d74727565267374796c653d666c61742d737175617265) [![Latest Stable Version](https://camo.githubusercontent.com/0f5fec4f460346adfe477750d8ec23b640e984b149efabfcd2f1646038a5b09d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616e617373746f75617469636f6465722f6d6167656e746f322d6d6f64756c652d6261636b746f746f702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/anasstouaticoder/magento2-module-backtotop) [![Composer Downloads](https://camo.githubusercontent.com/dd99f63809b5c3ff1ffc89b5b82949ec9c20300263cb18ad1794904bcc27552a/68747470733a2f2f706f7365722e707567782e6f72672f616e617373746f75617469636f6465722f6d6167656e746f322d6d6f64756c652d6261636b746f746f702f646f776e6c6f616473)](https://packagist.org/packages/anasstouaticoder/magento2-module-backtotop) [![Maintained - Yes](https://camo.githubusercontent.com/04aba48520e6322ebc6c41b7995626a88ce408bd46ec4eb15ae474936b345276/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d61696e7461696e65642533462d7965732d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://GitHub.com/Naereen/StrapDown.js/graphs/commit-activity) [![](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://opensource.org/licenses/MIT)

```
``anasstouaticoder/magento2-module-back-to-top``

```

- [Main Functionalities](#markdown-header-main-functionalities)
- [Installation](#markdown-header-installation)
- [Configuration](#markdown-header-configuration)
- [Specifications](#markdown-header-specifications)
- [usage](#markdown-header-usage)
- [License](#markdown-header-license)

Main Functionalities
--------------------

[](#main-functionalities)

add back to top button in magento pages

Installation
------------

[](#installation)

\* = in production please use the `--keep-generated` option

### install from composer 2

[](#install-from-composer-2)

- In magento project root directory run command `composer require anasstouaticoder/magento2-module-back-to-top`
- Enable the module by running `php bin/magento module:enable AnassTouatiCoder_BackToTop`
- Flush the cache by running `php bin/magento cache:flush`

### Zip file

[](#zip-file)

- Unzip the zip file in `app/code/AnassTouatiCoder`
- Enable the module by running `php bin/magento module:enable AnassTouatiCoder_BackToTop`
- Flush the cache by running `php bin/magento cache:flush`

Configuration
-------------

[](#configuration)

### Configuration In Back Office

[](#configuration-in-back-office)

To configure the Back To Top module:

Log in to the Magento admin panel. Navigate to Stores &gt; Configuration &gt; AnassTouatiCoder &gt; Back To Top.

#### General group =&gt; Enable: Toggle to enable or disable the "Back to Top" button globally.

[](#general-group--enable-toggle-to-enable-or-disable-the-back-to-top-button-globally)

#### Display group =&gt; setup up your preferences

[](#display-group--setup-up-your-preferences)

- Label: Set the text label displayed on the button.
- Label Color: Choose a color for the button label.
- Background Color: Choose a background color for the button.
- Hover Background Color: Choose a background color for the button when hovered over.
- Border Color: Set the border color for the button.
- SVG Image: Upload an SVG image to use instead of the text label.
- Image SVG Size: Set the size of the SVG image, by default it is 32 x 32.
- Position: Select the position of the button on the page.

#### Target Pages Group

[](#target-pages-group)

- Target Pages: Choose whether to enable the button on all pages or specific pages.

Then save changes and clear Magento config cache

Specifications
--------------

[](#specifications)

This module provides a shortcut for customer to go back to the top of the page especially if your magento instance doesn't have sticky header or the pages are too long

Usage
-----

[](#usage)

the purpose of this module is to add back to top shortcut in Magento pages [See plugin wiki](https://github.com/anasstouaticoder/magento2-module-back-to-top/wiki/Project-Demo)

Usage
-----

[](#usage-1)

For any issues, suggestions, or contributions, feel free to reach out:

Author: Anass TOUATI Email:

License
-------

[](#license)

[MIT](https://opensource.org/licenses/MIT)

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~72 days

Total

4

Last Release

618d ago

PHP version history (2 changes)1.0.0PHP ~7.0||~7.1||~7.2||~7.3||~7.4.0||~8.1||~8.2

1.0.1PHP ~7.4.0||~8.1||~8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/b94c75be06a95da0e1b46e7b58cf506861527ba97b1374081dc7b4d74a3e77bb?d=identicon)[anasstouaticode](/maintainers/anasstouaticode)

---

Top Contributors

[![anasstouaticoder](https://avatars.githubusercontent.com/u/16495903?v=4)](https://github.com/anasstouaticoder "anasstouaticoder (1 commits)")

---

Tags

widgetshortcutmagento 2back officefrontend componentback to top

### Embed Badge

![Health badge](/badges/anasstouaticoder-magento2-module-backtotop/health.svg)

```
[![Health](https://phpackages.com/badges/anasstouaticoder-magento2-module-backtotop/health.svg)](https://phpackages.com/packages/anasstouaticoder-magento2-module-backtotop)
```

###  Alternatives

[magepal/magento2-googletagmanager

Google Tag Manager (GTM) for Magento 2 with Advance Data Layer

2671.5M4](/packages/magepal-magento2-googletagmanager)[yireo/magento2-webp2

Magento 2 module to add WebP support to the Magento frontend

2091.2M7](/packages/yireo-magento2-webp2)[tig/postnl-magento2

TIG Magento 2 PostNL extension

58544.2k4](/packages/tig-postnl-magento2)[magepal/magento2-reindex

Reindex your Magento2 store quickly and easily from backend/admin, instead of command line.

112649.7k1](/packages/magepal-magento2-reindex)[magepal/magento2-customeraccountlinksmanager

Customer Account Links Manager for Magento2 allows you to quickly and easily remove unwanted links from customer account dashboard

4084.9k](/packages/magepal-magento2-customeraccountlinksmanager)[magepal/magento2-preview-checkout-success-page

Quickly and easily preview and test your Magento2 checkout success page, without placing a new order each time

7790.6k](/packages/magepal-magento2-preview-checkout-success-page)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
