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

Menu drop open all

Started by Muut Archive 10 years ago · 4 replies · 590 views
10 years ago

In the Learn2 template you would like to know if you have the possibility to leave all the pages displayed in the drop down menu. Without the user having to click to open

10 years ago

Actually the menu items are all rendered, but it's only with CSS that these are hidden. This is because we use the sidebar for searching and we need all the menu items available to filter.

So to answer you question you would just need to change this in the theme's CSS:

TXT
#sidebar ul.topics ul {
    display: none;

Which is what is currently disabling the sub-level items from displaying until the parent is set to '.active'

10 years ago

My point is that code i posted is what is causing the menu items to stay closed by default.. (the display: none; part)

You need to remove it, then recompile scss.

10 years ago

got it.

And how do I recompile?

Sorry, but I'm starting as dev :/

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 2569 9 years ago
Archive · by Muut Archive, 9 years ago
2 1691 9 years ago
Archive · by Muut Archive, 9 years ago
2 4983 9 years ago
Archive · by Muut Archive, 9 years ago
1 3809 9 years ago
Archive · by Muut Archive, 9 years ago
3 1800 9 years ago