# Add button to TOC theme component

**URL:** https://meta.discourse.org/t/add-button-to-toc-theme-component/335200
**Category:** Development
**Tags:** disco-toc
**Created:** [November 8, 2024, 12:36pm UTC](https://meta.discourse.org/t/add-button-to-toc-theme-component/335200 "2024-11-08T12:36:16Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [November 8, 2024, 3:51pm UTC](https://meta.discourse.org/t/add-button-to-toc-theme-component/335200/2 "2024-11-08T15:51:56Z")

</div>

> [@qianping\_chen](#):
>
> hidden directory function

if you mean hide the TOC, you can already do this by clicking on the timeline button on the lower right.

 ![The image shows a screenshot of a webpage with a dark gray background, featuring various text boxes and a red arrow pointing to a "Timeline" button. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/c/3/2/c323a4fc27417a900fe08f3d9cf55c5bab1d835e.jpeg)

Then you will get the usual timeline with a “Contents” button that will allow you to re-enable the table of contents.

 ![This image depicts a screenshot of a webpage titled "Table of Contents" with a prominent red arrow pointing downwards to a button labeled "Contents". (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/7/5/3/75389d272c2d0b12d3620ee4adb32cf11b54f79a.jpeg)

---

_[View the full topic](https://meta.discourse.org/t/add-button-to-toc-theme-component/335200)._
