Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Menu drop open all

Started by Muut Archive 10 years ago · 4 replies · 654 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 Muut Archive, 10 years ago
1 672 1 week ago
Archive · by Deleted User, 9 years ago
0 3043 9 years ago
Archive · by Muut Archive, 9 years ago
2 1983 9 years ago
Archive · by Muut Archive, 9 years ago
2 5336 9 years ago
Archive · by Muut Archive, 9 years ago
1 4134 9 years ago