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 →

Change 'blog' to something else

Started by Muut Archive 10 years ago · 6 replies · 736 views
10 years ago

I would really like to change 'blog' to 'articles' or 'topics' or virtually anything else except blog. How do I do that? I want my substitute word to appear on the menu and I want to remove the word blog from the interface. I am just starting to use Grav but am comfortable changing the code if I can'd to this through the Admin panel. Thanks

10 years ago

When the theme is AntiMatter, for me changing the start of the frontmatter of /user/pages/home/blog.mdfrom:

YAML
title: Home
blog_url: blog
body_classes: header-image fullwidth

to:

YAML
title: Home
blog_url: articles
slug: articles
template: blog
body_classes: header-image fullwidth

will do the trick.

10 years ago

Thank you. Sorry I forgot to mention the theme. I'm using g5_helium so I'll see if I can find something similar to the above.

10 years ago

A-ok, so if you change the frontmatter item 'blog_url:' to 'articles' as described by @bleutzinn that should work in Gantry 5 as well.

I just tried that with Helium myself (and also renamed the parent folder to 'Articles' with the page slug 'articles') and it seems to have worked.

10 years ago

Thank you both once again. I now have it exactly as I want it and understand a bit more about how things work. Much appreciated.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Muut Archive, 10 years ago
1 672 1 week ago
Archive · by Deleted User, 9 years ago
0 3042 9 years ago
Archive · by Muut Archive, 9 years ago
2 1983 9 years ago
Archive · by Muut Archive, 9 years ago
2 5336 9 years ago
Archive · by Muut Archive, 9 years ago
1 4134 9 years ago