Topic on Project:Support desk

TOC Collapsed Initial State?

1
Johnywhy (talkcontribs)

This method is said to no longer work since 1.29.

This page explains how to set the initial state of a custom element. But the TOC is part of core, not custom.

This works, but wondering if there's a recommended way to set initial collapsed state

#toc > ul{display:none;}

Ideally, i want the TOC to remember the user's preference. CSS would break that.

Reply to "TOC Collapsed Initial State?"