# Custom Template Pages - Can't Set Title!?

**URL:** <https://forum.ghost.org/t/custom-template-pages-cant-set-title/8427>\
**Category:** Developer help\
**Created:** [July 27, 2019, 6:35am UTC](https://forum.ghost.org/t/custom-template-pages-cant-set-title/8427 "2019-07-27T06:35:05Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrewmc](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/andrewmc/32/3108_2.png) [@andrewmc](https://forum.ghost.org/u/andrewmc)\
**Post date:** [July 27, 2019, 6:35am UTC](https://forum.ghost.org/t/custom-template-pages-cant-set-title/8427/1 "2019-07-27T06:35:05Z")

</div>

I have setup a few collections with custom template pages.

For each of these collections I have noticed that the in the header is always:  
{{site\_name}} (Page 1)

How do I change this, it seems odd that it’s not taking the page title that has been set as the collection page.

cheers  
Andrew

---

<div class="post-metadata">

**Author:** ![Matt-B](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/matt-b/32/7929_2.png) [@Matt-B](https://forum.ghost.org/u/Matt-B)\
**Post date:** [July 27, 2019, 9:52am UTC](https://forum.ghost.org/t/custom-template-pages-cant-set-title/8427/2 "2019-07-27T09:52:46Z")

</div>

Hi,

You can try to change it with this :

{{@site.title}}

---

<div class="post-metadata">

**Author:** ![andrewmc](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/andrewmc/32/3108_2.png) [@andrewmc](https://forum.ghost.org/u/andrewmc)\
**Post date:** [July 30, 2019, 9:24am UTC](https://forum.ghost.org/t/custom-template-pages-cant-set-title/8427/3 "2019-07-30T09:24:20Z")

</div>

This would mean all pages would have a title as ‘site title’.

I may not have explained the problem correctly in the first place. I’m talking about the title in the head. This is the line of code:  
`<title>{{meta_title page=(t "meta-page")}}</title>`

The problem is that when you have a Collection page, the title ends up being “My blog (Page 1)” which is not great. I’m looking for control over this so it makes more sense to the user.

cheers  
Andrew

---

<div class="post-metadata">

**Author:** ![Matt-B](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/matt-b/32/7929_2.png) [@Matt-B](https://forum.ghost.org/u/Matt-B)\
**Post date:** [July 30, 2019, 7:58pm UTC](https://forum.ghost.org/t/custom-template-pages-cant-set-title/8427/4 "2019-07-30T19:58:52Z")

</div>

Hi,

Have you tried that:  
`<title>{{t "My blog"}}</title>`

I tested it out, works fine

---

<div class="post-metadata">

**Author:** ![andrewmc](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/andrewmc/32/3108_2.png) [@andrewmc](https://forum.ghost.org/u/andrewmc)\
**Post date:** [July 31, 2019, 12:18am UTC](https://forum.ghost.org/t/custom-template-pages-cant-set-title/8427/5 "2019-07-31T00:18:56Z")

</div>

How do I include the article title, or tag title, or collection title in this area?

Home: MySite - Home  
Collection: MySite - Collection Title  
Tag: MySite - Tag Title  
Article: MySite - Article Title

At the moment my default.dbs file is pretty simple. It just has the code I pasted above. It means that every page is titled “MySite” and collections are “MySite (Page 1)” which is not a good SEO solution.

---

<div class="post-metadata">

**Author:** ![andrewmc](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/andrewmc/32/3108_2.png) [@andrewmc](https://forum.ghost.org/u/andrewmc)\
**Post date:** [July 31, 2019, 2:17pm UTC](https://forum.ghost.org/t/custom-template-pages-cant-set-title/8427/6 "2019-07-31T14:17:16Z")

</div>

Found a solution

> <https://stackoverflow.com/questions/54498762/how-do-i-set-ghost-blog-custom-routes-yaml-collection-title-meta-description-i/54788950#54788950>

---

<div class="post-metadata">

**Author:** ![Matt-B](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/matt-b/32/7929_2.png) [@Matt-B](https://forum.ghost.org/u/Matt-B)\
**Post date:** [July 31, 2019, 9:24pm UTC](https://forum.ghost.org/t/custom-template-pages-cant-set-title/8427/7 "2019-07-31T21:24:54Z")

</div>

Glad you found a solution! 🙂

I’ll bookmark it, it could surely help me too maybe!
