You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you to all in this community who have been so helpful and for those who have developed or assisted in the development of this tool!
I have a suggestion for an improvement to the current application of the CSS tweak provided with the "Bible Study in Obsidian Kit"
I use h6 headers in other notes in obsidian so I couldn't implement the CSS tweak provided in the "Bible Study in Obsidian Kit" to move the h6 headers to the side without negatively affecting my other notes. So I used the workaround of using YAML front matter to assign a class to specific notes which the CSS calls to apply the different formatting based on if that class is present.
Here is what the YAML looks like for applying a custom class:
---
cssClass: "bvh6custom"
---
Name the class whatever you like. I used bvh6custom (bvh6 meaning Bible Verse Header 6) for this example.
And then I just nested the current CSS tweak provided in the kit within the call for the YAML frontmatter:
Then you just have to add the custom CSS to your snippets.css file and you are good to go! This way you can have the custom header implementation in preview mode but not have it affect any of your other notes.
I wish I had the expertise to implement this myself in a pull request but I'm afraid I come up short in this department (my way of inserting the YAML being a somewhat unreliable PowerShell script). I'm hoping someone can use an implementation like that in pull request #2 to automatically insert the YAML frontmatter via a script and have it as an option for other users.
Peace be with you all!
The text was updated successfully, but these errors were encountered:
Hi @SavageManChild, sorry for not coming back to you earlier. I really like this idea. I'll keep it in the back of my mind and will keep an eye out if there is more interest.
Hello,
Thank you to all in this community who have been so helpful and for those who have developed or assisted in the development of this tool!
I have a suggestion for an improvement to the current application of the CSS tweak provided with the "Bible Study in Obsidian Kit"
I use h6 headers in other notes in obsidian so I couldn't implement the CSS tweak provided in the "Bible Study in Obsidian Kit" to move the h6 headers to the side without negatively affecting my other notes. So I used the workaround of using YAML front matter to assign a class to specific notes which the CSS calls to apply the different formatting based on if that class is present.
Here is what the YAML looks like for applying a custom class:
Name the class whatever you like. I used bvh6custom (bvh6 meaning Bible Verse Header 6) for this example.
And then I just nested the current CSS tweak provided in the kit within the call for the YAML frontmatter:
The call being
.bvh6custom
Then you just have to add the custom CSS to your
snippets.css
file and you are good to go! This way you can have the custom header implementation in preview mode but not have it affect any of your other notes.I wish I had the expertise to implement this myself in a pull request but I'm afraid I come up short in this department (my way of inserting the YAML being a somewhat unreliable PowerShell script). I'm hoping someone can use an implementation like that in pull request #2 to automatically insert the YAML frontmatter via a script and have it as an option for other users.
Peace be with you all!
The text was updated successfully, but these errors were encountered: