Skip to main content
MindTouch Success Center

Collapse TOC on page load

Applies to:
MindTouch (current)
Role required:
Draft Contributor

Issue

When the page loads, automatically collapse Table of Contents (TOC) which can be expanded when clicked

Resolution

Add the following CSS in a code block to individual pages or to Custom Site CSS to apply to all pages::

.mt-collapsible-section {
     display: none;   
}

 

  • Was this article helpful?