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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Themes & Styling

How to handle templates of plugins

Solved by pamtbaau View solution

Started by Spica 7 years ago · 1 replies · 424 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 Pedro M, 2 months ago
4 195 2 months ago
Themes & Styling · by Ian, 2 months ago
3 91 2 months ago
Themes & Styling · by Norbert, 2 years ago
11 451 3 months ago
Themes & Styling · by Lukáš Findeis, 3 months ago
0 45 3 months ago
Themes & Styling · by Sebadamus, 4 months ago
5 125 3 months ago