# 在 Grey Amber 主题标题中包含 dtoc

**URL:** <https://meta.discourse.org/t/contains-dtoc-in-grey-amber-theme-header/118238>\
**Category:** Site feedback\
**Created:** [2019年五月20日 18:29 UTC](https://meta.discourse.org/t/contains-dtoc-in-grey-amber-theme-header/118238 "2019-05-20T18:29:51Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ellibereth](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ellibereth/32/202896_2.png) [@Ellibereth](https://meta.discourse.org/u/Ellibereth)\
**Post date:** [2019年五月20日 18:29 UTC](https://meta.discourse.org/t/contains-dtoc-in-grey-amber-theme-header/118238/1 "2019-05-20T18:29:51Z")

</div>

If you switch to Grey Amber theme here you can see a “contains\_dtoc” in the header.  
Not sure what category this belongs in (here or bug).

---

<div class="post-metadata">

**Author:** ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)\
**Post date:** [2019年五月20日 18:32 UTC](https://meta.discourse.org/t/contains-dtoc-in-grey-amber-theme-header/118238/3 "2019-05-20T18:32:15Z")

</div>

Looks like an issue with the DiscoTOC theme component (cc @Johani). This is specific to Meta and I’ve removed the component for now (it was only enabled on some themes).

---

<div class="post-metadata">

**Author:** ![usulrasolas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/usulrasolas/32/156692_2.png) [@usulrasolas](https://meta.discourse.org/u/usulrasolas)\
**Post date:** [2019年五月21日 02:16 UTC](https://meta.discourse.org/t/contains-dtoc-in-grey-amber-theme-header/118238/4 "2019-05-21T02:16:45Z")

</div>

What’s the best way to go about disabling this component if it this breaks all my theme views preventing me pulling up mainsite or /admin?

---

<div class="post-metadata">

**Author:** ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)\
**Post date:** [2019年五月21日 02:46 UTC](https://meta.discourse.org/t/contains-dtoc-in-grey-amber-theme-header/118238/5 "2019-05-21T02:46:22Z")

</div>

Access your site via [safe mode](https://meta.discourse.org/t/53504?silent=true). Go to `forum.example.com/safe-mode`, disable the current theme, and then you can disable the theme component from the admin panel. See [Using Safe Mode to troubleshoot issues with themes and plugins](https://meta.discourse.org/t/how-to-use-discourse-safe-mode/53504) for more details.

---

<div class="post-metadata">

**Author:** ![usulrasolas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/usulrasolas/32/156692_2.png) [@usulrasolas](https://meta.discourse.org/u/usulrasolas)\
**Post date:** [2019年五月21日 03:07 UTC](https://meta.discourse.org/t/contains-dtoc-in-grey-amber-theme-header/118238/6 "2019-05-21T03:07:20Z")

</div>

It appears this has been fixed for my issue. Updated dtoc via [safe mode](https://meta.discourse.org/t/53504?silent=true) and now works. I think I got an update between code pushes. Thanks

---

<div class="post-metadata">

**Author:** ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)\
**Post date:** [2019年五月21日 04:20 UTC](https://meta.discourse.org/t/contains-dtoc-in-grey-amber-theme-header/118238/7 "2019-05-21T04:20:22Z")

</div>

this is not just a grey amber theme issue - I had the same problem with the regular light and dark themes.

In any case, [safe mode](https://meta.discourse.org/t/53504?silent=true), update the table of contents theme component worked to bring my site back.

---

<div class="post-metadata">

**Author:** ![Johani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johani/32/176920_2.png) [@Johani](https://meta.discourse.org/u/Johani)\
**Post date:** [2019年五月21日 09:35 UTC](https://meta.discourse.org/t/contains-dtoc-in-grey-amber-theme-header/118238/8 "2019-05-21T09:35:15Z")

</div>

The root cause is fixed. See

[https://meta.discourse.org/t/discotoc-automatic-table-of-contents/111143/82?u=johani](https://meta.discourse.org/t/discotoc-automatic-table-of-contents/111143/82)

Thanks for reporting the issue @Ellibereth 👍

---

<div class="post-metadata">

**Author:** ![Johani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johani/32/176920_2.png) [@Johani](https://meta.discourse.org/u/Johani)\
**Post date:** [2019年五月21日 09:35 UTC](https://meta.discourse.org/t/contains-dtoc-in-grey-amber-theme-header/118238/9 "2019-05-21T09:35:26Z")

</div>


