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 2024-08-31 12:48 UTC

This package is auto-updated.

Last update: 2024-10-31 00:33:06 UTC


README

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

Supported Magento Versions Latest Stable Version Composer Downloads Maintained - Yes
``anasstouaticoder/magento2-module-back-to-top``

Main Functionalities

add back to top button in magento pages

Installation

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

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

  • 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 In Back Office

To configure the Back To Top module:

Log in to the Magento admin panel. Navigate to Stores > Configuration > AnassTouatiCoder > Back To Top.

General group => Enable: Toggle to enable or disable the "Back to Top" button globally.

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: Choose whether to enable the button on all pages or specific pages.

Then save changes and clear Magento config cache

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

the purpose of this module is to add back to top shortcut in Magento pages See plugin wiki

Usage

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

Author: Anass TOUATI Email: anass1touati@gmail.com

License

MIT