1

I am trying to make my own theme for drupal 8. but I am struggling with the menu. my menu looks something like this

parent1
- child 1.1
- child 1.2
parent2
- child 2.1
- child 2.2

but only the parents are visible.

I used the menu.html.twig file from the classy theme.

edit: I tried my theme on other site and there the children are displayed. so guess the problems was not because of theme. so i activated the stark theme, but also there I can't see my full menu tree. and the checkboxes show as expanded are checked

4
  • I used the { } button to indent the menu example so that it displays as expected.
    – mradcliffe
    Apr 7, 2016 at 14:42
  • Your menu is a block and you render in the page?
    – rpayanm
    Apr 7, 2016 at 17:25
  • Is your theme specifying 'classy' as the base theme?
    – Kevin
    Apr 7, 2016 at 19:43
  • 1
    Sorry, but did you set Maximum number of menu levels to display setting on the menu block settings form? Core menu blocks in D8 work like Menu Block blocks in D7. Apr 14, 2016 at 12:50

1 Answer 1

2

Make sure your parent links are set to Show as expanded on the /admin/structure/menu/manage/main page

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.