Overview
In this article, we will look at how to use the Row Menu in our Drupal sites. Below is a screenshot of the Row Menu in action (inside red brackets):
Purpose
The Row Menu is used as a secondary menu for large sub-sections of sites. Do not use a Row Menu as the only/main navigation of a site.
Tutorial
1) Create normal Drupal menu
- Row Menus can utilize any Drupal Menu. However, they are limited to displaying only 1 sub-level of links.
2) Add to Block Layout
- Row Menus are added to pages through the Block Layout. Go to Structure > Block Layout (/admin/structure/block)
- Click 'Place Block'
- Choose the menu you have already created.
- A configuration page like below will pop up.
3) Configure Row Menu Block
- Click on 'Menu Levels'. Make sure to check 'Expand all menu items'.
- Under 'Pages', list out each page you want the Row Menu to appear on.
- Click 'Save block'
4) Verify
- You will now see your Row Menu menu block added in the Block Layout
- Navigate to a page you listed in the 'Pages' area of the visibility settings to confirm the Row Menu is showing up correctly.
Tips
- More than 1 Row Menu can be added per site. Simply place another menu block in the Row Menu block layout slot and configure to display on the correct pages.
- Do not display more than 1 Row Menu per page.