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

Change 'blog' to something else

Started by Muut Archive 9 years ago · 6 replies · 491 views
9 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

9 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.

9 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.

9 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.

9 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 Deleted User, 9 years ago
0 1323 9 years ago
Archive · by Muut Archive, 9 years ago
2 919 9 years ago
Archive · by Muut Archive, 9 years ago
2 4048 9 years ago
Archive · by Muut Archive, 9 years ago
1 2923 9 years ago
Archive · by Muut Archive, 9 years ago
3 1106 9 years ago