Skip to content
Grav 2.0 is officially stable. Read the announcement →
Themes & Styling

How to add twigs in a theme and keep customization across theme updates

first-time theme

Solved by pamtbaau View solution

Started by Sam Vanhoutte 6 years ago · 2 replies · 435 views
6 years ago

Hello all,

Important disclaimer: I'm a newbie, so might have missed something obvious, please bear with me.

I am using a public theme (Future) for my website. I want to add twigs to the theme and customize exiting twigs of the theme. I had done this successfully (but did not setup backup) and I noticed my new twigs disappeared after updating the theme on my website. (now I'm switching to leverage git and CI/CD, so should no longer be an issue of losing things).

So, I'm wondering if I placed these new twig templates in the wrong folder or something, making it disappear during the upgrade or so?

I couldn't find guidance or an article that describes how to best do the above? Anyone that could point me in the right direction?

6 years ago Solution

@SamVanhoutte, Sorry to hear you have lost all your updates...

To prevent this to happen in the future, use Theme Inheritance and make your changes in the inherited theme.

👍 1
6 years ago

Thanks, that seems to describe exactly what I need to do. Much appreciated

Suggested topics

Topic Participants Replies Views Activity
Themes & Styling · by Pedro M, 2 months ago
4 232 2 months ago
Themes & Styling · by Ian, 2 months ago
3 120 2 months ago
Themes & Styling · by Norbert, 2 years ago
11 485 3 months ago
Themes & Styling · by Lukáš Findeis, 3 months ago
0 74 3 months ago
Themes & Styling · by Sebadamus, 4 months ago
5 153 3 months ago