<p>When you create a category you will need to tell craft which template to load:</p>

<p><img src="https://i.sstatic.net/BpLKS.jpg" alt="enter image description here"></p>

<p>So for your example you would put <code>categories/index</code> in there and you should find the template gets loaded when you visit the category url.</p>

<p><a href="http://buildwithcraft.com/docs/templating-overview" rel="noreferrer">See more about templating in the docs</a></p>

CC BY-SA 3.0
2015-06-27T12:24:48.133Z
2015-06-27T12:24:48.133Z
Alec Ritson
<p>below is my categories url.</p>

<p><a href="http://example.com/index.php?p=categories/vaporizers" rel="nofollow">http://example.com/index.php?p=categories/vaporizers</a></p>

<p>i create a template files for categories like</p>

<pre><code>templates/categories/index.html
templates/categories/_entry.html
</code></pre>

<p>my index.html is not called when categories view. please tell me where i create a mistake.</p>

<p>Thanks</p>

<templating><categories>
How to create a template file for Categories?
# How to create a template file for Categories?

(Asked by: username_0 on 2015-06-27)

below is my categories url.
http://example.com/index.php?p=categories/vaporizers
i create a template files for categories like
templates/categories/index.html
templates/categories/_entry.html

my index.html is not called when categories view. please tell me where i create a mistake.
Thanks

**Tags:** templating, categories

---

## 1 answers

### Answer by username_1 on 2015-06-27. Score: 6 | Accepted answer

When you create a category you will need to tell craft which template to load:

![enter image description here](https://i.sstatic.net/BpLKS.jpg)

So for your example you would put `categories/index` in there and you should find the template gets loaded when you visit the category url.

[See more about templating in the docs](http://buildwithcraft.com/docs/templating-overview)


---

