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

Disappearing top menu with Quark theme

Solved by Anthony Carmody View solution

Started by Anthony Carmody 2 years ago · 9 replies · 532 views
2 years ago

I have a Grav site that i have had running for 12 months or so, and recently I had to manually reinstall Grav (as the upgrade function stalled and failed halfway though) No huge deal, i had a backup of my content. The problem now is my drop-down menu disappeared and I can't work out how to re-enable it. I have half a dozen pages that either use the 'default' template or 'blog' and I had them dropping beneath the home menu item.

image|690x419

last edited 02/01/24 by Anthony Carmody
2 years ago

In your user/config/system.yaml, what is the setting of home.hide_in_urls? It looks from your screenshot like your pages are under the /home path. My home section in system.yaml usually looks like this:

YAML
home:
  alias: '/home'
  hide_in_urls: true

(or have a look in the relevant part of Admin)

2 years ago

@xarmoda, Since the icons of your child pages are grey instead of blue, I suspect they are not visible.

  • Check if all child pages have a number prefix.
    According the docs on Content/Pages/Folders:

    If no number is provided as a prefix of the folder name, the page is considered to be invisible , and will not show up in the navigation. An example of this would be the error page in the above folder-structure.

  • Or, if no prefix, check if the frontmatter of the page have a visible: true property.
    According the docs on Content/Header/Frontmatter/Visible:

    By default, a page is visible in the navigation if the surrounding folder has a numerical prefix, i.e. /01.home is visible, while /error is not visible . This behavior can be overwritten by setting the visible variable in the header. Valid values are true or false .

2 years ago

@hughbris:
It looks from your screenshot like your pages are under the /home path

Oh I didn't read carefully enough, seems like @xarmoda wanted that.

@pamtbaau:
Since the icons of your child pages are grey instead of blue, I suspect they are not visible

Well spotted. Can't imagine why that would change after restoring from a backup though. I guess we will discover in time.

2 years ago

@hughbris:
Can’t imagine why that would change after restoring from a backup though

I had a quick dig but I don't really have time go further now. I don't think @pamtbaau needs hints or encouragement 😉, but I suspect these (as blogposts) don't have folder prefixes and something has changed in the theme to handle them differently.

@xarmoda did you make any changes to the quark theme directly before you upgraded recently? (suggesting another possibility that your direct theme overrides have been lost)

2 years ago

@hughbris, Interesting guessing game is unfolding due to limited information...

@hughbris:
[..] but I suspect these (as blogposts) don’t have folder prefixes [..]

They are not blogposts (item.md) if I understand OP correctly:

  • I have half a dozen pages that either use the ‘default’ template or ‘blog’ and I had them dropping beneath the home menu item.

2 years ago

We had some fun guessing. Is there anything more you can tell us about your setup?

last edited 02/02/24
2 years ago

I've tried installing other themes. I think the thing to do is wipe the install completely. I have raw content backed up.

I was running FreeBSD 13.2-RELEASE-p2. I generally try to only use software from ports for this reason.

2 years ago Solution

I’ve rebuilt the site from a fresh install. I had backed up content. Thanks for the help everyone.

Suggested topics

Topic Participants Replies Views Activity
Support · by Thomas, 1 week ago
2 56 13 hours ago
Support · by Anna, 3 days ago
2 61 16 hours ago
Support · by Justin Young, 17 hours ago
1 32 17 hours ago
Support · by Duc , 1 week ago
2 66 5 days ago
Support · by Colin Hume, 1 week ago
2 59 5 days ago