Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Create submenu does not work with admin panel theme twenty

Started by anke brodersen 5 years ago · 1 replies · 635 views
5 years ago

i want to create a submenu in the theme twenty like shown in the picture. Bildschirmfoto 2021-09-01 um 21.17.06|690x478

the structure looks like parent is "Schwerpunkte", which should not be routable (advanced settings routable disabled). child pages "chronische Erkrankungen", "Gesundheitscoaching" and "Hauterkrankungen" are Child pages. they are routable and visible. the submenu is not visible. Only "Schwerpunkte" without the subpages in the menu bar. I want it to like like shown in the picture Bildschirmfoto 2021-09-01 um 21.21.39|690x170
"Submenu".
What can i do?
thanks.

5 years ago

@seeankemone, Theme Twenty is not designed to fascilitate a menu structure as shown above.

It only provides a hardcoded menu-item 'Welcome' and a single dropdown menu 'Layout'. See the skeleton or the original theme.

You will have to change template /user/themes/twenty/templates/partials/header.html.twig to create a menu to you liking.

Note, this theme is 7 years old which is from the very early days of Grav. You might consider choosing a more recent theme.

👍 1

Suggested topics

Topic Participants Replies Views Activity
Themes & Styling · by FrViPofm, 3 weeks ago
4 452 2 weeks ago
Themes & Styling · by johan thomas, 5 years ago
1 788 3 weeks ago
Themes & Styling · by stuart young, 2 months ago
3 645 2 months ago
Themes & Styling · by Sebadamus, 2 months ago
5 664 2 months ago
Themes & Styling · by martynfoster735, 2 months ago
1 629 2 months ago