Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

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 · 622 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 FrViPofm, 4 weeks ago
4 476 2 weeks ago
Themes & Styling · by johan thomas, 5 years ago
1 802 3 weeks ago
Themes & Styling · by stuart young, 2 months ago
3 662 2 months ago
Themes & Styling · by Sebadamus, 3 months ago
5 683 2 months ago
Themes & Styling · by martynfoster735, 3 months ago
1 643 3 months ago