This Magento 2 module replaces the core top navigation menu. Instead, it renders the top level category only and allows you to assign a CMS Block already created to replace the submenus.
To install this module copy the code from this repository to app/code/Space48/CmsMenu
folder in your Magento 2 instance, then you need to run the following commands from the terminal:
bin/magento setup:upgrade
bin/magento indexer:reindex
From the terminal execute the following commands:
composer config repositories.space48-cms-menu vcs [email protected]:Space48/CmsMenu.git
composer require "space48/cmsmenu"
to install the latest version or"space48/SeoTitles:{module-version}"
to install a specific version.bin/magento setup:upgrade
bin/magento indexer:reindex
From the terminal execute the following:
modman init
(in case Modman already initialized there)modman clone [email protected]:Space48/CmsMenu.git
bin/magento setup:upgrade
bin/magento indexer:reindex
Once installed...
- Go to the
Content -> Elements -> Blocks
and create or edit the block you want to use as a sub menu. - Save changes.
- Go to the
Admin Penel -> Products -> Categories
and select the category you want to assign the sub menu to. - Under
Content
section look for a dropdown option labelledMenu CMS Block
. - Select the block you want to use.
- Save changes.
- Flush Magento cache.
If you have done the previous steps and still cannot see the sub menus or you get an error message saying that cms_block_menu
column is missing, try reindexing the flat tables related to categories.