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 →

Best Practice on Changing a Theme

Started by Muut Archive 11 years ago · 1 replies · 571 views
11 years ago

What is the best practice for changing theme template files?

In WordPress they have the child themes workflow to override pages in the original theme and not loose changes when the theme is updated. Does Grav have a similar work flow?

WordPress Child Themes

/themes/TwentyTen <-- original theme
/themes/TwentyTen-child <-- empty folder containing only files to override

I know about overriding the theme in yaml on the actual content page .md file (template:). Is it possible to just drop a template file (like default.html.twig) in a /user folder without copy/pasting the theme and updating the original theme template pages?

I did read the manual and remember something like that but now I cannot find it.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Muut Archive, 10 years ago
1 676 1 week ago
Archive · by Deleted User, 9 years ago
0 3043 9 years ago
Archive · by Muut Archive, 9 years ago
2 1983 9 years ago
Archive · by Muut Archive, 9 years ago
2 5337 9 years ago
Archive · by Muut Archive, 9 years ago
1 4134 9 years ago