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

Menu drop open all

Started by Muut Archive 9 years ago · 4 replies · 466 views
9 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

9 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'

9 years ago

did not work :/

I need the subitems already appear open, without having to click on the previous items. As in the picture:

http://prnt.sc/ennzne

9 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.

9 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 1332 9 years ago
Archive · by Muut Archive, 9 years ago
2 923 9 years ago
Archive · by Muut Archive, 9 years ago
2 4053 9 years ago
Archive · by Muut Archive, 9 years ago
1 2931 9 years ago
Archive · by Muut Archive, 9 years ago
3 1109 9 years ago