<p>For that path, Craft would look for the following template files, and use the first one that exists:</p>

<ul>
<li><code>craft/app/templates/users/_edit</code></li>
<li><code>craft/app/templates/users/_edit.html</code></li>
<li><code>craft/app/templates/users/_edit.twig</code></li>
<li><code>craft/app/templates/users/_edit/index.html</code></li>
<li><code>craft/app/templates/users/_edit/index.twig</code></li>
<li><code>craft/plugins/users/templates/_edit</code></li>
<li><code>craft/plugins/users/templates/_edit.html</code></li>
<li><code>craft/plugins/users/templates/_edit.twig</code></li>
<li><code>craft/plugins/users/templates/_edit/index.html</code></li>
<li><code>craft/plugins/users/templates/_edit/index.twig</code></li>
</ul>

<p>[<a href="https://craftcms.com/classreference/services/TemplatesService#findTemplate-detail" rel="nofollow noreferrer">source</a>]</p>

<p>As the <code>users/_edit.html</code> template in <code>craft/app/templates</code> will always exist, it will always find that first and use it.</p>

CC BY-SA 3.0
2017-08-08T14:09:20.387Z
This means it's impossible to override core templates?
Joost
CC BY-SA 3.0
2017-08-08T15:06:54.247Z
yes, as far as I am aware you can't override core templates, there is a `"cp.users.edit"` [template hook](https://craftcms.com/classreference/services/TemplatesService#hook-detail) that might be useful, depending on your specific needs.
Mike Pepper
CC BY-SA 3.0
2017-08-08T13:48:40.137Z
2017-08-08T13:48:40.137Z
Mike Pepper
<p>How can I override the following admin template in Craft 2?</p>

<pre><code>craft/app/templates/users/_edit.html
</code></pre>

<p>I've tried placing the template in my own template directory, like:</p>

<pre><code>templates/users/_edit.html
</code></pre>

<p>but this doesn't override Craft's own template. </p>

CC BY-SA 3.0
2017-08-08T12:13:33.183Z
Did you try templates/admin/users/_edit.html?
Syversen
CC BY-SA 3.0
2017-08-08T12:52:25.837Z
Unfortunately does not work.
Joost
<frontend>
Override admin template with own template
# Override admin template with own template

(Asked by: username_0 on 2017-08-08)

How can I override the following admin template in Craft 2?
craft/app/templates/users/_edit.html

I've tried placing the template in my own template directory, like:
templates/users/_edit.html

but this doesn't override Craft's own template.

**Tags:** frontend

> **Comments:**
> **username_1**: Did you try templates/admin/users/_edit.html?  
> **username_0**: Unfortunately does not work.  

---

## 1 answers

### Answer by username_2 on 2017-08-08. Score: 4

For that path, Craft would look for the following template files, and use the first one that exists:

* `craft/app/templates/users/_edit`
* `craft/app/templates/users/_edit.html`
* `craft/app/templates/users/_edit.twig`
* `craft/app/templates/users/_edit/index.html`
* `craft/app/templates/users/_edit/index.twig`
* `craft/plugins/users/templates/_edit`
* `craft/plugins/users/templates/_edit.html`
* `craft/plugins/users/templates/_edit.twig`
* `craft/plugins/users/templates/_edit/index.html`
* `craft/plugins/users/templates/_edit/index.twig`

[[source](https://craftcms.com/classreference/services/TemplatesService#findTemplate-detail)]

As the `users/_edit.html` template in `craft/app/templates` will always exist, it will always find that first and use it.

> **Comments:**
> **username_0**: This means it's impossible to override core templates?  
> **username_2**: yes, as far as I am aware you can't override core templates, there is a `"cp.users.edit"` [template hook](https://craftcms.com/classreference/services/TemplatesService#hook-detail) that might be useful, depending on your specific needs.  

---

