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

Error Page on my Navigation Bar

Started by Muut Archive 10 years ago · 10 replies · 442 views
10 years ago

On my navigation bar which is visible from all pages are the following links:

  • Blog
  • About Me
  • Contact
  • Error Page

Those first three I want to keep. The fourth "Error Page" is one I want to go away. How do I make that link go away? Thanks!

10 years ago

I should mention that I don't have an "Error Page" in my listing of pages and this is a fresh install with a simple Blog theme.

10 years ago

In page editing mode, the "Advanced" tab has a "Visible" attribute which usualy defaults to "Enabled". Set it to "Disabled" to hide the page. Of course, this assumes your navigation builder has code to ignore any pages which are not visible.

TWIG
{% for p in page.children.visible %}

The page can still be accessed, as long as it is also published, but it is hidden from menus, sitemaps, etc.

10 years ago

Thanks for the reply, but I don't think this works for my situation. I don't have an "Error Page" and this is a clean install. Where might I access the navigation builder code?

10 years ago

Did you have a fourth page? If yes, can you check its YAML header? Most likely there is an error, that's why you see the error page instead of this one.

10 years ago

At the top level, there are only three pages: blog, about, and contact. I did create an initial blog post page under the blog folder and there's the default "thankyou" page under contact. Those are all 5 pages. Thank you for your suggestions.

10 years ago

99% sure it's defined in site.yaml as an additional page to showcase how the error page looks like, in the skeleton

10 years ago

A 'find . | xargs grep "Error Page" 2> /dev/null' yields a few cached pages and sites.yaml. Is it okay to edit that file?

10 years ago

Its in the site.yaml ,found at(user/config/site.yaml) just confirmed it.... You have to delete the lines highlighted in the image Aaaa

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