# Block reference to heading - whole heading section

**URL:** <https://forum.obsidian.md/t/block-reference-to-heading-whole-heading-section/21746>\
**Category:** Basement\
**Created:** [July 30, 2021, 10:07am UTC](https://forum.obsidian.md/t/block-reference-to-heading-whole-heading-section/21746 "2021-07-30T10:07:49Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![jimw](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/j/f14d63/32.png) [@jimw](https://forum.obsidian.md/u/jimw)\
**Post date:** [July 30, 2021, 10:07am UTC](https://forum.obsidian.md/t/block-reference-to-heading-whole-heading-section/21746/1 "2021-07-30T10:07:49Z")

</div>

Hi All,

I’ve now reached the point in my vault where I can start to cross-reference more heavily - however the behaviour is not quite as I hoped…

When block referencing a heading from another note, I would like the contents of the entire heading to be referenced in the new note, but it seems to keep getting cut off after a certain number of lines.  
Am I doing something wrong, or is there somewhere I can alter this behaviour?

Thanks

Jim

### What I’m trying to do

---

<div class="post-metadata">

**Author:** ![midas0441](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/m/a698b9/32.png) [@midas0441](https://forum.obsidian.md/u/midas0441)\
**Post date:** [July 30, 2021, 10:31am UTC](https://forum.obsidian.md/t/block-reference-to-heading-whole-heading-section/21746/2 "2021-07-30T10:31:28Z")

</div>

Try:

[https://forum.obsidian.md/t/transclusion-questions/12127/6?u=midas0441](https://forum.obsidian.md/t/transclusion-questions/12127/6)

---

<div class="post-metadata">

**Author:** ![jimw](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/j/f14d63/32.png) [@jimw](https://forum.obsidian.md/u/jimw)\
**Post date:** [July 30, 2021, 10:38am UTC](https://forum.obsidian.md/t/block-reference-to-heading-whole-heading-section/21746/3 "2021-07-30T10:38:44Z")

</div>

Thanks - I can see that this is probably what I need to do - what do I do with this (presumably) CSS code?  
I’ve found the Snippets folder in Obsidian - what do I save the snippet as?!

Sorry for the simple questions!!

---

<div class="post-metadata">

**Author:** ![jimw](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/j/f14d63/32.png) [@jimw](https://forum.obsidian.md/u/jimw)\
**Post date:** [July 30, 2021, 10:45am UTC](https://forum.obsidian.md/t/block-reference-to-heading-whole-heading-section/21746/4 "2021-07-30T10:45:33Z")

</div>

@midas0441 sorry - one last question, which one of the transclusions is the right one for the behaviour above?

Thanks

---

<div class="post-metadata">

**Author:** ![midas0441](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/m/a698b9/32.png) [@midas0441](https://forum.obsidian.md/u/midas0441)\
**Post date:** [July 30, 2021, 11:59am UTC](https://forum.obsidian.md/t/block-reference-to-heading-whole-heading-section/21746/5 "2021-07-30T11:59:44Z")

</div>

Under Settings, Appearance, activate the snippet. If the snippet is in the correct folder, it should appear as one of the options to turn on.

---

<div class="post-metadata">

**Author:** ![midas0441](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/m/a698b9/32.png) [@midas0441](https://forum.obsidian.md/u/midas0441)\
**Post date:** [July 30, 2021, 12:02pm UTC](https://forum.obsidian.md/t/block-reference-to-heading-whole-heading-section/21746/6 "2021-07-30T12:02:45Z")

</div>

I assume you mean which one of the _snippets_, not transclusions. I am unfortunately not at the computer right now to answer. I remember the Embeds.css file is well annotated and I picked up the portion that referred to a “clean” view of embeds (I think).

EDIT: I can confirm — the relevant portion of `Embeds.css` is called `clean-embeds`.

---

<div class="post-metadata">

**Author:** ![jimw](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/j/f14d63/32.png) [@jimw](https://forum.obsidian.md/u/jimw)\
**Post date:** [August 1, 2021, 9:51pm UTC](https://forum.obsidian.md/t/block-reference-to-heading-whole-heading-section/21746/7 "2021-08-01T21:51:12Z")

</div>

Thanks @midas0441 I actually got this working using [`Clean embeds on a vault-wide basis, alternative for Naked embeds below`](https://github.com/Dmitriy-Shulha/obsidian-css-snippets/blob/develop/Snippets/Embeds.md#clean-embeds-on-a-vault-wide-basis-alternative-for-naked-embeds-below).

**For those complete newbies (like me!) to get this to work you need to:**

1. Copy the CSS code from the GitHub page above
2. Paste it into a NotePad document (Windows)
3. Save as… whateveryouwanttocallit.css
4. Open Obsidian \> Settings \> Appearance. In the CSS Snippets - click the folder icon and move your whateveryouwanttocallit.css file into it and then enable it
5. You should now have complete block references in your document

Thanks to @midas0441 for the help

---

<div class="post-metadata">

**Author:** ![Moonbase59](https://forum.obsidian.md/user_avatar/forum.obsidian.md/moonbase59/32/13648_2.png) [@Moonbase59](https://forum.obsidian.md/u/Moonbase59)\
**Post date:** [August 2, 2021, 3:03am UTC](https://forum.obsidian.md/t/block-reference-to-heading-whole-heading-section/21746/8 "2021-08-02T03:03:59Z")

</div>

I’m actually the author of “clean embeds”, the original source is in this forum post: [Meta Post - Common CSS Hacks - #411 by Moonbase59](https://forum.obsidian.md/t/meta-post-common-css-hacks/1978/411)

If anything changes, I will _update only this post_, it’s up to the friendly people collecting this stuff on their GitHub pages to also update their copy (not always an easy task).

So always good to take a peek at the original, too. 😉

Glad that it could help you!

---

<div class="post-metadata">

**Author:** ![Moonbase59](https://forum.obsidian.md/user_avatar/forum.obsidian.md/moonbase59/32/13648_2.png) [@Moonbase59](https://forum.obsidian.md/u/Moonbase59)\
**Post date:** [August 2, 2021, 3:09am UTC](https://forum.obsidian.md/t/block-reference-to-heading-whole-heading-section/21746/9 "2021-08-02T03:09:07Z")

</div>

If you’re on WIndows, using Notepad might have some quirks. Let me hint you at [Notepad++](https://notepad-plus-plus.org/), which can do a _lot_ more—and correctly.

---

<div class="post-metadata">

**Author:** ![system](https://forum.obsidian.md/uploads/default/original/3X/b/e/bec35fbd23ab28909bb6bfe62cb32eb82dd34019.png) [@system](https://forum.obsidian.md/u/system)\
**Post date:** [August 3, 2021, 3:10am UTC](https://forum.obsidian.md/t/block-reference-to-heading-whole-heading-section/21746/10 "2021-08-03T03:10:00Z")

</div>

Closed on August 3, 2021, 3:10am UTC

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
