obsidian_everforest icon indicating copy to clipboard operation
obsidian_everforest copied to clipboard

Frontmatter YAML metadata not visible in Reading mode

Open HyperEpsilon opened this issue 2 years ago • 8 comments

As the title says, the frontmatter YAML box is not visible in reading mode.

I can see that it's been disabled in the CSS, but I would love a way to turn it back on without messing around in there myself. Some sort of settings pluggin perhaps? The Features block on the about page does say it's customizable.

Everforest:

Obsidian_lbbN007Fuv

Default Theme:

Obsidian_DpXBgS2Q01

HyperEpsilon avatar Mar 29 '22 20:03 HyperEpsilon

Can be changed in Obsidian settings. Go to "Settings" - "Editor" - "Show frontmatter" and turn it back on

jasperdekeuk avatar Apr 07 '22 19:04 jasperdekeuk

I have this same issue despite enabling "show frontmatter"

  • "Show frontmatter" is enabled in Editor Settings
  • All Sync options are enabled
  • Using Evergreen as a theme
  • On Android, the frontmatter appears in reading view
  • on PC, it doesn't
  • if i switch to a different theme (Atom), the frontmatter appears in reading view as expected

julianmerkle avatar Dec 21 '22 16:12 julianmerkle

+1 what gives? Can we get frontmatter showing?

anthonyabraira avatar Dec 31 '22 18:12 anthonyabraira

I also have this issue. I really like the everforest theme, but it has some bugs including this one. On android I can see front matter rendered properly, but not on my PC I believe there might be an issue with it and dataview plugin as well.

ariccb avatar Jan 09 '23 17:01 ariccb

@ariccb, I'm also using everforest theme and having the same issue. However, today I found the solution how to solve this issue. Goto the vault in window explorer, search for .obsidian> themes > Everforest > theme.css. Open the CSS file with text editor.

Search the text: "frontmatter" and you will see these code: frontmatter-container { display: none; }

change these code into a comment by adding "/" & "/" to become like this: /.frontmatter-container { display: none; }/

save the CSS file then you should able to see the front matter in the reading mode.

jackalteoh avatar Jan 10 '23 11:01 jackalteoh

@jackalteoh brilliant! That was super easy, and fixed the problem for me.

ariccb avatar Jan 12 '23 05:01 ariccb

@ariccb, glad to hear that. @HyperEpsilon, @julianmerkle & @anthonyabraira, you may refer to the solution I posted, hope it solves your issue. btw, the code I suggested to be added should be "/" & "/" so it will change that block into a comment.

/* .frontmatter-container { display: none; } */

jackalteoh avatar Jan 13 '23 02:01 jackalteoh

@jackalteoh great thanks - this also works for me!

I'll have to learn CSS, I remember in older version of everforest there was a really nice alternative layout for the frontmatter. With your fix it works, but I think it reverts to the standard way of displaying it (same as in other themes)

julianmerkle avatar Jan 13 '23 14:01 julianmerkle