On my home page I have four columns, each with a header and links to dozens of folders below each header. How do I make the headers collapsible so that the folders are usually hidden and become visible only when clicking on the header?
I realize that this is a very elementary question, but I would be grateful if someone could point me in the right direction.
Headings are collapsible by default. There is an arrow at the start of each one (invisible until you hover over it or touch it) that lets you do it. There are also commands (they use the word âfoldâ, not âcollapseâ).
If that doesnât work, and Settings > Editor > Fold Heading is enabled, your columns may be interfering. In that case youâll need to explain how youâre creating the columns, since that requires CSS and/or a plugin.
It turns out that the column headers arenât standard headers. I donât remember how I created the columns, but the column headers take the form â- ColumnHeader.â Perhaps I need to redo them. What would be the best way to create columns with folding headers?
If you copy a note, paste it here, trim it down to a minimal example that shows the column stuff, and mark it as a code block (same way you would in Obsidian: https://help.obsidian.md/syntax#Code), we can hopefully see what youâre working with and how to make it do what you want.
If there isnât other stuff in the note thatâs needed to make a column, then yes. Could you look at your lists of enabled plugins and CSS snippets to see what makes this into a column? If itâs a snippet, you can post it here as code like you did with the note contents.
Wolfchiruâs suggestion is a good one. It will not only enable folding, it will make the note render in a more expected way if you ever export it to another format.
Another option would be to change - Volume 18 to ### Volume 18 to make it a heading (unless that interferes with how your columns work.
I created the columns some time ago, but I canât figure out how I did it since I seem to have no relevant CSS snippet or plugin. Changing - Volume 18 to ### Volume 18 interferes with how the columns work, but I may have to accept that and forget about columns.
However, when I change the headings to ### Volume 18, etc., on the homepage and publish the changes on my Obsidian Publish site, the headings donât fold. Presumably I need to add something to the publish.css, or is this a limitation of Obsidian Publish?