Fully expand table of content

Is there any way to make the entire TOC show up at once instead of dynamically hiding most of it? A full post outline can be useful for finding a section without knowing and clicking through its ancestry, or so you can just read all the section names as a way to skim a post.

4 Likes

I would second this feature request. I can see that this might result in long TOCs, but at least one could add an “expand all” button or Link?

3 Likes

I am wondering how the TOC plugin is intended to function as I am finding its behaviour sort of odd. I have attached an animated gif below showing my observed behaviour. Is this intentional?

tocissue

My personal thought/preference is that the TOC is just fully expanded from the start.

Thanks in advance!

4 Likes

And I’d really appreciate it if the option “expand all” would be developed soon.

1 Like

While I do love the dynamically expanding ToC, I agree that it would be really nice to have the option to dipslay a fully expanded ToC for longer wikis!

5 Likes

Let me give you a dirty hack:

.d-toc-sublevel {
	max-height: 500em !important;
    overflow: visible !important;
    opacity: 1 !important;
}

Copy-paste it into your themes custom CSS somewhere in

https://www.your-domain.com/admin/customize/themes/.

5 Likes

Works like a charm :fist_left:

2 Likes