# Change font size of Title on tag page

**URL:** <https://forum.ghost.org/t/change-font-size-of-title-on-tag-page/39229>\
**Category:** Using Ghost\
**Created:** [June 15, 2023, 7:58pm UTC](https://forum.ghost.org/t/change-font-size-of-title-on-tag-page/39229 "2023-06-15T19:58:08Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jimmyknight](https://avatars.discourse-cdn.com/v4/letter/j/c77e96/32.png) [@jimmyknight](https://forum.ghost.org/u/jimmyknight)\
**Post date:** [June 15, 2023, 7:58pm UTC](https://forum.ghost.org/t/change-font-size-of-title-on-tag-page/39229/1 "2023-06-15T19:58:08Z")

</div>

How do I change font size of the Tag header or Title on it’s tag page.

I’m assuming its via code injection, as thats the option when editing Tag pages properties.

---

<div class="post-metadata">

**Author:** ![jimmyknight](https://avatars.discourse-cdn.com/v4/letter/j/c77e96/32.png) [@jimmyknight](https://forum.ghost.org/u/jimmyknight)\
**Post date:** [June 16, 2023, 4:15am UTC](https://forum.ghost.org/t/change-font-size-of-title-on-tag-page/39229/2 "2023-06-16T04:15:24Z")

</div>

Can Anyone help me out? …I have googled and searched the forum already.

---

<div class="post-metadata">

**Author:** ![Cathy\_Sarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cathy_sarisky/32/25750_2.png) [@Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky)\
**Post date:** [June 16, 2023, 11:02am UTC](https://forum.ghost.org/t/change-font-size-of-title-on-tag-page/39229/3 "2023-06-16T11:02:43Z")

</div>

This is theme specific. Name the theme or better yet provide a working link.

---

<div class="post-metadata">

**Author:** ![jimmyknight](https://avatars.discourse-cdn.com/v4/letter/j/c77e96/32.png) [@jimmyknight](https://forum.ghost.org/u/jimmyknight)\
**Post date:** [June 17, 2023, 3:02am UTC](https://forum.ghost.org/t/change-font-size-of-title-on-tag-page/39229/4 "2023-06-17T03:02:24Z")

</div>

I’m using the “Headline” theme…thanks !!

---

<div class="post-metadata">

**Author:** ![Cathy\_Sarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cathy_sarisky/32/25750_2.png) [@Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky)\
**Post date:** [June 17, 2023, 11:04am UTC](https://forum.ghost.org/t/change-font-size-of-title-on-tag-page/39229/5 "2023-06-17T11:04:56Z")

</div>

I’m going to walk you through it, so that you can make small changes like this on your own in the future. :) (It’s super powerful.)

These directions are Chrome and Windows, but should be generally applicable to other browsers/OSes. (No promises on phones!) If you’re using a Mac and Safari, you might need these directions for opening developer tools: [How to Inspect Element on Mac using Safari ? | BrowserStack](https://www.browserstack.com/guide/how-to-inspect-element-on-mac)

So I opened [headline.ghost.io](http://headline.ghost.io) (you’d open YOUR site here), and navigated to a tags page. I think you’re trying to target the highlighted part?

 ![image](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/3X/1/4/144b9e83311b92242b269b9ea6cc9d66ec8441ef.jpeg)

I right clicked it and chose ‘Inspect’ from the menu. Developer tools opens up, and I see this:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/3X/b/3/b3f8037960757e208e9303c133a6a3421cd13644.png)

That tells me that the word “Culture” on this page is wrapped in an h1 tag, and has the class “gh-pagehead-title”. I can also see that it has a CSS setting of `font-size: 2.4rem`. That’s the thing I want to change, to something bigger.

You can actually EDIT what you’re seeing there - just click where it says 2.4rem and it’ll let you edit it. Try 5rem. Too big? OK, try 3.5rem. Find a value that works. None of those changes are going back to your Ghost site, but that’s super helpful for figuring out what values you want.

Ok, so how do we save those changes?  
I typically put code injection into the main code injection box, found at Settings \> Code Injection. You /can/ put it in the tag’s specific code injection, but then it’ll only apply to that tag. Most of the time, you probably want to change everywhere an h1 has that class, so you’d put it in the main code injection, rather than changing one single tag. (It can go in head or foot.)

OK, so what goes in code injection?  
CSS needs to be wrapped in `<style> stuff here </style>` tags to tell the browser this is a style, not regular HTML.  
The format is `selector { attribute: value ; secondattribute: secondvalue }`  
Tags go in the selector as the tag (i.e. h1). Classes start with a `.`. (if you had an id, that’d start with a #.)

So for this case, I would try:

```auto
<style>
.gh-pagehead-title { 
   font-size: 5rem;
}
</style>

```

There’s one more little wrinkle here, and that’s that we’re telling the browser two different things (one the original value, and one the new value). How will it know which to apply? If they’re the same, it’ll use the last one (which is an argument for putting CSS into the ghost foot). But if you’re having trouble getting a style to apply, add an `!important`, which can help get overrides to apply. So the line above becomes:

```auto
<style>
.gh-pagehead-title { 
   font-size: 5rem !important;
}
</style>

```

---

<div class="post-metadata">

**Author:** ![jimmyknight](https://avatars.discourse-cdn.com/v4/letter/j/c77e96/32.png) [@jimmyknight](https://forum.ghost.org/u/jimmyknight)\
**Post date:** [June 19, 2023, 8:48pm UTC](https://forum.ghost.org/t/change-font-size-of-title-on-tag-page/39229/6 "2023-06-19T20:48:13Z")

</div>

wow…Cathy …thank you so much for the detailed response.

After some experimenting, I was able to nail it down to gh-cover-title, and fixed the issue.

Thank you for teaching me how to fish !!!

---

<div class="post-metadata">

**Author:** ![Cathy\_Sarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cathy_sarisky/32/25750_2.png) [@Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky)\
**Post date:** [June 19, 2023, 9:03pm UTC](https://forum.ghost.org/t/change-font-size-of-title-on-tag-page/39229/7 "2023-06-19T21:03:37Z")

</div>

Glad to help! Happy Fishing!
