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 items appearing that are marked with visible: false

Solved by David Douglass View solution

Started by David Douglass 4 years ago · 1 replies · 655 views
4 years ago

I have followed the documentation about menus, but it seems there is something that I'm missing here. The articles that I don't want to appear in the horizontal drop down, I put visible: false in the frontmatter of the page, I also made sure that visible was unchecked for each page I didn't want to appear in the horizontal drop down at the top of the page. But those pages still appear

last edited 01/24/23 by David Douglass
4 years ago Solution

Trial and error -- figured it out. I don't know if this is the right way to do it, but it worked:


{% if page.menu == 'About' or page.menu == 'Intro' %}
.....
{% endif %}


Suggested topics

Topic Participants Replies Views Activity
Support · by TomW, 2 days ago
4 57 5 hours ago
Support · by Anna, 1 week ago
2 147 2 days ago
Support · by Anna, 3 weeks ago
1 306 3 weeks ago
Support · by webmasterodp, 1 month ago
4 400 1 month ago
Support · by nwhitfield, 1 month ago
2 375 1 month ago