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 handle templates of plugins

Solved by pamtbaau View solution

Started by Spica 7 years ago · 1 replies · 744 views
7 years ago

/user/plugins/login/templates/login.html.twig

I want to customize this file. Where should I place a copy of it, to be save from upgrade overrides? Cannot find anything about how to handle templates of plugins.

7 years ago Solution

@Spica, You can override templates from plugins by copying the template from the plugin into your theme using the exact same folder hierarchy. Like:

/user/plugins/login/templates/login.html.twig --> /users/themes/my-theme/templates/login.html.twig

👍 2

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