getgrav / grav-theme-woo

Woo is a clean, modern, landing page site template. It has a fully responsive design and was tested on all major browser and mobile devices. Woo is the perfect template to showcase your apps, services or digital goods.
https://getgrav.org
Other
16 stars 8 forks source link

Cannot get menu to work #5

Closed du8die closed 7 years ago

du8die commented 7 years ago

Need assistance getting menu to work.

I've set up a new site exactly like the demo - and cannot get the top nav to populate with the menu items.

Please advise.

rhukster commented 7 years ago

Did you create a new folder/page and ensure it's visible? https://learn.getgrav.org/basics/basic-tutorial#adding-a-new-page

The 02. part in the folder name makes it visible. Otherwise you would have to just set visible: true in the page frontmatter.

du8die commented 7 years ago

Hi. Thanks for the quick reply.

Here's my folder structure:

01.Home ├─ _banner ├─ _features ├─ _pricing 02.Blog

01 and 02 show up. The modular pages don't.

Any other places I should be looking?

Thanks

rhukster commented 7 years ago

Modular pages don't show up in the menu by default. They are just building blocks to build a single page. If you want to provide an on-page menu it's going to take some custom code. Antimatter has an example of this:

https://github.com/getgrav/grav-theme-antimatter/blob/develop/templates/modular.html.twig#L29-L48

rhukster commented 7 years ago

Actually depending on your needs and based on the existing woo navigation code: https://github.com/getgrav/grav-theme-woo/blob/develop/templates/partials/navigation.html.twig

you can simply add some menu items to your site.yaml if you want some hardcoded ones.