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 →

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 · 696 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 MarkP, 2 weeks ago
3 193 2 weeks ago
Themes & Styling · by TomW, 2 weeks ago
0 111 2 weeks ago
Themes & Styling · by themetman, 3 weeks ago
1 206 3 weeks ago
Themes & Styling · by AH, 1 month ago
1 324 3 weeks ago
Themes & Styling · by Bruno, 4 years ago
6 1523 3 weeks ago