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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

Visible submenu on navbar

Started by bibi 5 years ago · 15 replies · 1071 views
5 years ago

hi guys,
i want create the main manu and dropmenu like this:
main 1 main 2 main 3
sub-main-2
(page-1)
(page-2)
(page-3)
the page-1, page-2, page-3 is sub page in sub-main-2. So i want the-page group hide from sub-main-2 and when enter the sub-main-2 i can enter the group page

5 years ago

What did you try so far? Do you have any code to share?

5 years ago

i try create it from admin page using add page

5 years ago

Your theme and navigation template are responsible for how menu is displayed. Adding pages doesn't change menu logic per se

👍 1
5 years ago

@bjproqn96, I'm afraid I cannot draw a mental picture of your menu structure and how it should behave. Would you mind drawing a picture of what you would like to see?

👍 1
5 years ago

i think your idea is good but i'm new guy in grav and the source from other people, and their code show the menu like what i want and i cant :((

5 years ago

what i want is show the menu like this
image|465x162, 75%

5 years ago

but my reuslt is this and i want remove the red zone
Untitled|690x344

5 years ago

@bjproqn96, I just went to the Mowede website. It is build with Grav using theme Bootstrap and the menu looks like how you wan it. Uhhh...

👍 1
5 years ago

@pamtbaau:
U

but i want modify it like the image i posted. But it doesnt work @@

5 years ago

@bjproqn96,

but i want modify it like the image i posted.

  • What is wrong with the image you have posted in reply #10 ?
  • What are we looking at?
    • Are these the titles of pages below page 'Case Studies'?
    • Do you wish to change the menu titles of these pages?

We are at post #13 now and I'm afraid I still have no idea what the question/problem/request is...

last edited 05/12/21 by pamtbaau
5 years ago

I personally don't really understand the difference between I want and I get.

Is it that only submenu should not appear? If so, then why make a screenshot of different page to make it more confusing? 😕

5 years ago

sr guys because my english not good and i have solved my problem. Tks a lot for support me !

5 years ago

this is what i want and have solved it :D
image|690x227

5 years ago

Explaining how you manage to do so would be appreciated : this is a help forum, the purpose is to share experience to everyone, not a 'help-me' service ...

👍 1
5 years ago

my solution is use visible: true in case stuides page above and visible: false on the modular page

👍 1

Suggested topics

Topic Participants Replies Views Activity
Support · by Thomas, 1 week ago
2 55 12 hours ago
Support · by Anna, 3 days ago
2 60 15 hours ago
Support · by Justin Young, 16 hours ago
1 31 16 hours ago
Support · by Duc , 1 week ago
2 65 5 days ago
Support · by Colin Hume, 1 week ago
2 58 5 days ago