# Hiding frontmatter

**URL:** <https://community.silverbullet.md/t/hiding-frontmatter/830>\
**Category:** General\
**Created:** [August 11, 2024, 8:13pm UTC](https://community.silverbullet.md/t/hiding-frontmatter/830 "2024-08-11T20:13:20Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Ajschuit](https://community.silverbullet.md/user_avatar/community.silverbullet.md/ajschuit/32/815_2.png) [@Ajschuit](https://community.silverbullet.md/u/Ajschuit)\
**Post date:** [December 23, 2024, 6:38pm UTC](https://community.silverbullet.md/t/hiding-frontmatter/830/7 "2024-12-23T18:38:52Z")

</div>

I was looking for this too, and came up with a solution I thought might be worth sharing. I haven’t tested it across too many browsers yet, but it’s working for me. Uses just one bit of css in the space-style to hide the frontmatter block down to just the first line (showing that there is frontmatter) until you move the cursor into it to make edits.

```space-style
.sb-frontmatter.sb-line-frontmatter-outside:has(+ .sb-frontmatter) ~ .sb-frontmatter {
    display:none
}

```

---

_[View the full topic](https://community.silverbullet.md/t/hiding-frontmatter/830)._
