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

How to handle templates of plugins

Solved by pamtbaau View solution

Started by Spica 7 years ago · 1 replies · 646 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 FrViPofm, 4 weeks ago
4 470 2 weeks ago
Themes & Styling · by johan thomas, 5 years ago
1 799 3 weeks ago
Themes & Styling · by stuart young, 2 months ago
3 656 2 months ago
Themes & Styling · by Sebadamus, 3 months ago
5 678 2 months ago
Themes & Styling · by martynfoster735, 3 months ago
1 640 3 months ago