A shopware 6 extension for a sticky menu from 992 pixels. The navigation menu item Home can also be hidden or can be replaced by a house icon.
- activate the sticky menu
- set the position in pixels from which the sticky menu should be active
- select the viewports in which the sticky menu should be active
- set the duration of the animation in milliseconds (*1)
- set the z-index value (*1)
- set the background color of the sticky menu (*1)
- set the shadow of the sticky menu (*1)
- show the navigation menu item Home
- replace the navigation menu item Home with a house icon
Some changes in the settings within the configuration are not immediately visible in the frontend of the shop
After changing settings specifically for the appearance of the sticky menu (*1), the theme must be recompiled, for example by reassigning the theme to the sales channel in the administration:
- Click on the current sales channel under "Sales Channels"
- Click on the tab "Theme"
- Click on the button "Change theme"
- Select the current theme
- Click on the button "Save"
- Clock on the button "Change theme"
- Download the latest SschreierStickyMenu-master.zip.
- Unzip the zip file and rename the folder to SschreierStickyMenu.
- Move the folder to the project folder custom/plugins/ .
- Connect to the console via ssh:
bin/console plugin:refresh
bin/console plugin:install --activate SschreierStickyMenu
- Add the repository URL to the composer.json of the project
"repositories": [
...,
{
"type": "vcs",
"url": "https://github.com/sschreier/SschreierStickyMenu"
}
],
- Connect to the console via ssh and install the plugin source code via the command
composer require sschreier/sschreierstickymenu
bin/console plugin:refresh
bin/console plugin:install --activate SschreierStickyMenu
- Download the latest SschreierStickyMenu-master.zip.
- Unzip the zip file and rename the folder to SschreierStickyMenu.
- Zip the folder to SschreierStickyMenu.zip.
- Upload the zip in the Shopware Administration.
- Install & Activate the extension.
- Download the latest SschreierStickyMenu-master.zip.
- Unzip the zip file and rename the folder to SschreierStickyMenu.
- Zip the folder to SschreierStickyMenu.zip.
- Upload the zip in the Shopware Administration.
- Update the extension.