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.
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 1
Forks: 0
Open Issues: 0
Type:magento2-module
Requires
- php: ~7.4.0||~8.1||~8.2
- anasstouaticoder/magento2-module-base: >=1.2.17
- magento/framework: *
README
Copy field path and value, display its override values in parent scope
``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