smartgravity / grav-theme-bones-vanilla

A Grav theme based on Foundation6 with the compiled CSS only.
MIT License
4 stars 2 forks source link

Dropdown Menu #13

Open k1ngf15h3r opened 8 years ago

k1ngf15h3r commented 8 years ago

Tried to create a new section with child pages and a dropdown menu for them. Can you explain me how to realize a dropdown menu?

Yethiel commented 7 years ago

It also doesn't seem to work for me, although it is enabled in the yaml.

paulhibbitts commented 7 years ago

I am using drop-downs with Bones Vanilla, here is the relevant setting in the theme yaml file:

dropdown:
  enabled: true

And I use a standard child collection for the top-level page above the multiple children, I think that was all I did to get it working...

Let me know if the above helps. Paul ps - here is a skeleton that uses dropdown menus, it is defaulted to "course-hub-bootstrap" but change it to "course-hub-bones" (based on Vanilla Bones) to hopefully see a working example. https://github.com/hibbitts-design/grav-skeleton-multi-course-pages-hub-site

sk33lz commented 6 years ago

While @paulhibbitts is correct that the dropdown setting must be enabled in the theme settings, I also figured out the other night that you need to make sure that the pages that you want to have in your dropdown have to have Folder Numeric Prefix enabled on the Options tab on the particular page for them to show up as a child page in dropdown on most Grav themes.

I actually noticed it in a different theme and then tried the setting in Bones Vanilla, as I was having the same issue. I have a feeling this might be @k1ngf15h3r's issue as well.