Changing link order in Drupal 8 menus

Once you have created your menu, it is quite possible that you will add additional item links later and at some point, need to rearrange them. This is very easy to do within Drupal as it uses a weighting concept. Below is a quick guide on how to rearrange item links within your Drupal 8menus.

How to reassign the order of links in your Drupal 8 menu

  1. Log into your Drupal 8 admin interface.
  2. click on the Menu item

    From the top menu select the Menu option.

  3. select the Structure option

    A secondary menu will appear just under the first. From here, click on the Structure option.

  4. select menu from structure list

    From the Structure list, click on the Menu option.

  5. select desired menu to work with

    You will see the memu listing page. From here, locare the menu you want to work with and select the Edit Menu link from the dropdown on the right side of the row.

  6. select menu from structure list

    We are now in the link list for the selected menu. There are two ways to change the order of the links. The first is to simply drag and drop them into the desired order by dragging the cross-shaped icon on the fer left.

select menu from structure list

The other way is to click on the Show row weights link on the right hand side of the row list. This will display a Weights column for each row. Set the number of this column to determine the display order. The higher the number, the ‘heavier’ the link will be, making it display lower in the list (for vertical menus) or more to the right (for horizontal menus).

select menu from structure list

Given our example, we set the Ipsum link to be the heavier of the two items, so it should display under the Lorem link. This is displayed in the finished product shot we have here.

0 thoughts on “Changing link order in Drupal 8 menus

  1. Hi.

    Everything works fine until I clear the cache. After ‘drush cr’ I get the ‘old’ order of menu links. Updated to 8.0.5 today.

    Best, Ingo

Was this article helpful? Join the conversation!

Server Madness Sale
Score Big with Savings up to 99% Off

X