How to change the color of the table of contents?
  • 29 Sep 2022
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

How to change the color of the table of contents?

  • Dark
    Light
  • PDF

You would want to change the color of the table of contents to showcase it better. Follow the below steps to change the color of the table of contents.


Solution

  1. Go to SettingsKnowledge base siteCustom CSS & JavaScriptCustom CSS
  2. Paste the below code snippet:
.content_block .content_container .page-action .article_action_links ul li a
{
color: red;
}
  1. In the above snippet, replace red with your desired color
  2. Click Save

Outcome

Before

The default color of the table of contents is grey.
15_Screenshot-Before_toc_color

After

The color of the table of contents is changed to red.
14_Screenshot-After_toc_color


Was this article helpful?