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

Best Practice on Changing a Theme

Started by Muut Archive 10 years ago · 1 replies · 386 views
10 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 Deleted User, 9 years ago
0 1362 9 years ago
Archive · by Muut Archive, 9 years ago
2 940 9 years ago
Archive · by Muut Archive, 9 years ago
2 4069 9 years ago
Archive · by Muut Archive, 9 years ago
1 2960 9 years ago
Archive · by Muut Archive, 9 years ago
3 1124 9 years ago