Comments

3 comments

  • Avatar
    Dorte Jacobsen

    Hit enter too soon :-)

    I wanted to ask whether it's possible to suppress display of the TOC in a single article?
    We're using the Help Center Theme and have one article which is a kind of extended glossary, we're using the excerpt/excerpt include macros to pull together info from 19 articles and the TOC becomes very loooong. Alternative, we would like to display only Heading 1s for that specific article.

    Thanks,
    Dorte

    0
    Comment actions Permalink
  • Avatar
    K15t Team

    Hi Dorte,

    you can suppress the ToC in one article by using custom CSS.
    The <body> in the HTML contains the pageid attribute which makes it possible with CSS to apply rules for specific pages. The class for the <div> element which contains the ToC is called ".article__toc".
    To suppress the ToC for a single page you can do something like this:

    body[pageid="<thePageId>"] .article__toc > div {
         display: none;
    }

    I hope this helps.


    Cheers,
    Steffen

    0
    Comment actions Permalink
  • Avatar
    Dorte Jacobsen

    Hi Steffen,

    Thanks for your help!

    I implemented in our test environment and it worked as you describe.

    Thanks again!
    Dorte

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk