Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Hamburger menu onepage skeleton

Started by Muut Archive 10 years ago · 3 replies · 729 views
10 years ago

Hi all, how do I add menu item on the hamburger menu when I use modular approach (onepage skeleton)? Thanks.

10 years ago

If you add another modular page it will automatically be added to that menu.

if you wish to add a manual type link then you will need to add it in the theme's modular.html.twig where the logic is contained for this on-page menu.

10 years ago

Thanks for that rhukster. I need more the second one. I did some search before I asked the question but I could not find it in the documentation. Is this info there? If not, maybe it needs to be added. Thanks again.

10 years ago

It appears to be partials/navigation.html.twig that I need to update, not modular.html.twig.

I've been able to add the menu to the hamburger menu. There is one last issue, how do I close the left bar (where the hamburger menu items are) upon clicking the menu item. I understand the menu item in hamburger menu may be supposed to be for a page which will invoke page load but can I have it to function just as the top navigation when in desktop mode (ie. close the menu and scroll to the section). Thanks.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1359 9 years ago
Archive · by Muut Archive, 9 years ago
2 936 9 years ago
Archive · by Muut Archive, 9 years ago
2 4066 9 years ago
Archive · by Muut Archive, 9 years ago
1 2956 9 years ago
Archive · by Muut Archive, 9 years ago
3 1121 9 years ago