# Add a title to your Tocbot TOC

**URL:** <https://forum.ghost.org/t/add-a-title-to-your-tocbot-toc/47847>\
**Category:** Using Ghost\
**Created:** [June 2, 2024, 1:34pm UTC](https://forum.ghost.org/t/add-a-title-to-your-tocbot-toc/47847 "2024-06-02T13:34:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ScottSemple](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/scottsemple/32/17035_2.png) [@ScottSemple](https://forum.ghost.org/u/ScottSemple)\
**Post date:** [June 2, 2024, 1:34pm UTC](https://forum.ghost.org/t/add-a-title-to-your-tocbot-toc/47847/1 "2024-06-02T13:34:48Z")

</div>

I used [this tutorial](https://ghost.org/tutorials/adding-table-of-contents/) to add a TOC to my posts. However, that method doesn’t include a title for the TOC, so it becomes unlabeled headings in the margin, like so:

 ![Screenshot 2024-06-02 at 9.30.29 AM](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/3X/5/7/57472bef16a1ae23115803f7a03cb94dcfe3e029.png)

The following CSS will add a title similar to what [Ghost itself uses](https://ghost.org/resources/talking-the-talk/?utm_source=admin#heart-over-mind). (Edit “Table of Contents” to whatever title you prefer.)

```auto
    .gh-toc::before {
      content: "Table of Contents";
      display: flex;
      font-weight: bold;
    }

```

To add some space between the title and the headings, add padding to `toc-list`:

```auto
    .toc-list {
        overflow: hidden;
        padding-top: 10px;
        list-style: none;
    }

```

The result:

 ![Screenshot 2024-06-02 at 9.31.24 AM](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/3X/7/a/7a5e49b93c633c286a04a43263fe2379362c6265.png)

---

<div class="post-metadata">

**Author:** ![block](https://avatars.discourse-cdn.com/v4/letter/b/839c29/32.png) [@block](https://forum.ghost.org/u/block)\
**Post date:** [January 5, 2025, 2:46pm UTC](https://forum.ghost.org/t/add-a-title-to-your-tocbot-toc/47847/2 "2025-01-05T14:46:11Z")

</div>

Hi, thanks so much for this thoughtful addition! My table of contents looks so much better now. I’m curious, though—if Ghost plans to update that tutorial anytime soon? It feels pretty outdated, especially since their blog now features a far nicer and more polished table of contents.

---

<div class="post-metadata">

**Author:** ![ScottSemple](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/scottsemple/32/17035_2.png) [@ScottSemple](https://forum.ghost.org/u/ScottSemple)\
**Post date:** [January 5, 2025, 3:19pm UTC](https://forum.ghost.org/t/add-a-title-to-your-tocbot-toc/47847/3 "2025-01-05T15:19:21Z")

</div>

The styling will depend on the CSS used and will vary by theme.

---

<div class="post-metadata">

**Author:** ![block](https://avatars.discourse-cdn.com/v4/letter/b/839c29/32.png) [@block](https://forum.ghost.org/u/block)\
**Post date:** [January 7, 2025, 7:53am UTC](https://forum.ghost.org/t/add-a-title-to-your-tocbot-toc/47847/4 "2025-01-07T07:53:00Z")

</div>

Correct, did you notice also [this](https://forum.ghost.org/t/table-of-contents-spacing-issue-on-the-casper-theme/54171) little bug?
