# Embed tags

**URL:** <https://forum.obsidian.md/t/embed-tags/14872>\
**Category:** Help\
**Created:** [March 18, 2021, 11:19am UTC](https://forum.obsidian.md/t/embed-tags/14872 "2021-03-18T11:19:39Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hobo\_9000](https://forum.obsidian.md/user_avatar/forum.obsidian.md/hobo_9000/32/8189_2.png) [@Hobo\_9000](https://forum.obsidian.md/u/Hobo_9000)\
**Post date:** [March 18, 2021, 11:19am UTC](https://forum.obsidian.md/t/embed-tags/14872/1 "2021-03-18T11:19:39Z")

</div>

**Request:**  
i want to embed the #tags into the text itself.  
kinda like embedding [Url](https://www.wikiwand.com/en/URL)s into the text with the “[paste URL](https://github.com/denolehov/obsidian-url-into-selection)” community pug in.

**Reason:**  
I want to tag all the dates, names, places, Acts, events and such into one umbrella.

- **why:**

1. i don’t want a bunch of tags peppering my notes, making it un-readable.
2. i want to search under the #date tag and fish up all the dates in the vault, (same for #name , #place , #law , etc… )
3. i want it functions as the second layer of organization underneath my links which is underneath the Files.

**Conclusion:**

1. if this doesn’t exist please, **PLEASE 🙏** make it.
2. in the meantime, recommend me some app that let’s me do this on top of doing most things that Obsidian can.

---

<div class="post-metadata">

**Author:** ![alltagsverstand](https://forum.obsidian.md/user_avatar/forum.obsidian.md/alltagsverstand/32/4265_2.png) [@alltagsverstand](https://forum.obsidian.md/u/alltagsverstand)\
**Post date:** [March 18, 2021, 11:32am UTC](https://forum.obsidian.md/t/embed-tags/14872/2 "2021-03-18T11:32:21Z")

</div>

I am not quite sure what you would like to achieve - could you elaborate on this a bit? What does it mean for you to “embed” a tag into your text?

---

<div class="post-metadata">

**Author:** ![Hobo\_9000](https://forum.obsidian.md/user_avatar/forum.obsidian.md/hobo_9000/32/8189_2.png) [@Hobo\_9000](https://forum.obsidian.md/u/Hobo_9000)\
**Post date:** [March 18, 2021, 12:24pm UTC](https://forum.obsidian.md/t/embed-tags/14872/3 "2021-03-18T12:24:34Z")

</div>

**TLDR:** i wanna colour core my content, but instead of making it look pretty i want it be functional.

* * *

**long version**

the way i have done with the URL. Let’s say i have a dat / year  
like 1608.  
& I want to mark that as a #date. if I put 1608 #date, that’s all I get **1608 #DATE**  
.  
it completely messes with the flow of my notes (in view mode) and my entire notes has a lot of elements like this, names, places, events, Acts, Supreme court rulings etc… etc…

and, I **NEED** to tag them all, because a bunch of Psychos are setting my exam and neet to know as much as possible about everything… **EVERYTHING**.

so tagging all the nouns, names, places, bla bla bla, it keeps going… would turn my notes into an unreadable mess.

but I need to do that, to be able to quickly fish out all the names, or years, or court rulings, or some obscure group of info, to…

1. revise, catalogue my strengths and weaknesses,
2. relate the entire vault with the second level of connections (a metadata link)
3. most importantly, to keep my ADHD addled Dyslexic brain focused on the content and know what I’m reading.
4. sure up the portions of my notes that are lacking in info (depth of info) i.e. metadata. which would imply the content in that page is not backed up with enough facts & data.  
… with that info…  
a. i can see which file has the least amount of (metadata links) in one glace/srub\_through.  
b. I can verify if that makes sense for that file/topic.  
c. i can refer to the questions relevant to that topic and see if the metadata requirement matches, (buy linking all the possible questions that can be asked from each topic and creating an ideal template & requirement for each type of question → that task is a whole different beast. I’m scared to even talk about it)  
d. if i find it lacking… i can search the closest notes (the ones that are most relevant to the lacking notes) to sure up my notes…  
e. thereby eliminating the knowledge gaps. and improving the quality of my answers. (and maybe my understanding on the topic while I’m at it)  
.  
it sounds complicated while i say it (because i suck at explaining),

**basically** : i wanna colour core my content, but instead on making it look pretty i want it to be functional.

---

<div class="post-metadata">

**Author:** ![alltagsverstand](https://forum.obsidian.md/user_avatar/forum.obsidian.md/alltagsverstand/32/4265_2.png) [@alltagsverstand](https://forum.obsidian.md/u/alltagsverstand)\
**Post date:** [March 18, 2021, 12:52pm UTC](https://forum.obsidian.md/t/embed-tags/14872/4 "2021-03-18T12:52:20Z")

</div>

Try:

```
a.tag[href="#date"] {
    display: none;
}
```

---

<div class="post-metadata">

**Author:** ![Hobo\_9000](https://forum.obsidian.md/user_avatar/forum.obsidian.md/hobo_9000/32/8189_2.png) [@Hobo\_9000](https://forum.obsidian.md/u/Hobo_9000)\
**Post date:** [March 18, 2021, 3:16pm UTC](https://forum.obsidian.md/t/embed-tags/14872/5 "2021-03-18T15:16:14Z")

</div>

**TLDR:-** where? how?

disclaimer - i can’t code to save my life, I know this not “coding” but…  
my skill with “deep” computer interaction stops at writing an obsidian note with links and headings.

if… if… you have the time pls explain it to me like you are explaining it to a literal 3-year-old who only know how to open the PC and watch youtube.

but I completely understand if you don’t have the time. thank you any way, I’ll “try” to figure it out.

---

<div class="post-metadata">

**Author:** ![alltagsverstand](https://forum.obsidian.md/user_avatar/forum.obsidian.md/alltagsverstand/32/4265_2.png) [@alltagsverstand](https://forum.obsidian.md/u/alltagsverstand)\
**Post date:** [March 18, 2021, 3:26pm UTC](https://forum.obsidian.md/t/embed-tags/14872/6 "2021-03-18T15:26:50Z")

</div>

Open a text editor, paste the above snippet and save it as `hiddentags.css` (or whatever file name you want to chose - only the .css is important!). In your vault, there should be a folder `.obsidian/snippets` - save your file in this folder.

After that, in obsidian, open the app’s settings, navigate to “appearance” and activate your file under “css snippets” (if it doesn’t appear there, chose “reload snippets”).

If you want to hide several tags, paste the above code multiple times in your newly created file and replace the `#date` with the tags you want to be hidden, for example

```
a.tag[href="#event"] {
    display: none;
}
```

---

<div class="post-metadata">

**Author:** ![Hobo\_9000](https://forum.obsidian.md/user_avatar/forum.obsidian.md/hobo_9000/32/8189_2.png) [@Hobo\_9000](https://forum.obsidian.md/u/Hobo_9000)\
**Post date:** [March 18, 2021, 6:57pm UTC](https://forum.obsidian.md/t/embed-tags/14872/7 "2021-03-18T18:57:34Z")

</div>

woooo…!!!  
.  
i’ll try it out out as soon as i wake up, thank you so much.  
.  
it seems like it can’t be embedded onto a text, but meh, as long as it shows up in search with the relevant info & forms visible tag links, I’m peach.

---

<div class="post-metadata">

**Author:** ![alltagsverstand](https://forum.obsidian.md/user_avatar/forum.obsidian.md/alltagsverstand/32/4265_2.png) [@alltagsverstand](https://forum.obsidian.md/u/alltagsverstand)\
**Post date:** [March 18, 2021, 7:09pm UTC](https://forum.obsidian.md/t/embed-tags/14872/8 "2021-03-18T19:09:55Z")

</div>

> [@Hobo\_9000](#):
>
> seems like it can’t be embedded onto a text

No - but you could approach this behavior by establishing a workaround:

Create a note called “date” - and each time you insert a date in any other note, make it a link like this: `[[date|2021-03-18]]`; now, in your “date” note, you will see all dates in your vault in the backlink pane.

---

<div class="post-metadata">

**Author:** ![Hobo\_9000](https://forum.obsidian.md/user_avatar/forum.obsidian.md/hobo_9000/32/8189_2.png) [@Hobo\_9000](https://forum.obsidian.md/u/Hobo_9000)\
**Post date:** [March 21, 2021, 9:54am UTC](https://forum.obsidian.md/t/embed-tags/14872/9 "2021-03-21T09:54:12Z")

</div>

can dated be just, a year, or a month of a year, or day?

---

<div class="post-metadata">

**Author:** ![Hobo\_9000](https://forum.obsidian.md/user_avatar/forum.obsidian.md/hobo_9000/32/8189_2.png) [@Hobo\_9000](https://forum.obsidian.md/u/Hobo_9000)\
**Post date:** [March 24, 2021, 1:50pm UTC](https://forum.obsidian.md/t/embed-tags/14872/10 "2021-03-24T13:50:09Z")

</div>

i don’t think it’s working…

is it okay to paste the code in a notepad \> save it a .css and put it in .onsidian/snippits ?

---

<div class="post-metadata">

**Author:** ![alltagsverstand](https://forum.obsidian.md/user_avatar/forum.obsidian.md/alltagsverstand/32/4265_2.png) [@alltagsverstand](https://forum.obsidian.md/u/alltagsverstand)\
**Post date:** [March 24, 2021, 1:53pm UTC](https://forum.obsidian.md/t/embed-tags/14872/11 "2021-03-24T13:53:46Z")

</div>

> [@Hobo\_9000](#):
>
> i don’t think it’s working…

What is not working?

> [@Hobo\_9000](#):
>
> is it okay to paste the code in a notepad \> save it a .css and put it in .onsidian/snippits ?

Well, that’s the procedure I described above - so: yes! But you have to activate your snippet in the obsidian settings after that!

---

<div class="post-metadata">

**Author:** ![Hobo\_9000](https://forum.obsidian.md/user_avatar/forum.obsidian.md/hobo_9000/32/8189_2.png) [@Hobo\_9000](https://forum.obsidian.md/u/Hobo_9000)\
**Post date:** [March 24, 2021, 2:00pm UTC](https://forum.obsidian.md/t/embed-tags/14872/13 "2021-03-24T14:00:24Z")

</div>

ye i did, i can still see em…  
is there a particular way to type the #whatever like \<#whatever\>  
or will it work as soon as i activate the CSS and restart the app?  
did that as well

---

<div class="post-metadata">

**Author:** ![alltagsverstand](https://forum.obsidian.md/user_avatar/forum.obsidian.md/alltagsverstand/32/4265_2.png) [@alltagsverstand](https://forum.obsidian.md/u/alltagsverstand)\
**Post date:** [March 24, 2021, 2:09pm UTC](https://forum.obsidian.md/t/embed-tags/14872/14 "2021-03-24T14:09:52Z")

</div>

> [@Hobo\_9000](#):
>
> is there a particular way to type the #whatever like \<#whatever\>

I don’t understand your question.

The snippet will hide the tags in preview mode, not in edit mode (which makes sense, as you would still want to see your source code somewhere…).

If it doesn’t hide your tags even in preview mode, it might possibly conflict with some other css…

- Which theme and/or custom css are you using?
- Can you paste the snippet you saved as custom css?

---

<div class="post-metadata">

**Author:** ![Hobo\_9000](https://forum.obsidian.md/user_avatar/forum.obsidian.md/hobo_9000/32/8189_2.png) [@Hobo\_9000](https://forum.obsidian.md/u/Hobo_9000)\
**Post date:** [March 24, 2021, 2:12pm UTC](https://forum.obsidian.md/t/embed-tags/14872/15 "2021-03-24T14:12:57Z")

</div>

![image](https://forum.obsidian.md/uploads/default/original/2X/d/d53a78e88c1572fba2c5b9a77fcadb488a1720f8.jpeg)  
 ![image](https://forum.obsidian.md/uploads/default/original/2X/3/3f3f55dba4dc4a351a35c87cf1272adce1606e62.jpeg)

---

<div class="post-metadata">

**Author:** ![alltagsverstand](https://forum.obsidian.md/user_avatar/forum.obsidian.md/alltagsverstand/32/4265_2.png) [@alltagsverstand](https://forum.obsidian.md/u/alltagsverstand)\
**Post date:** [March 24, 2021, 2:17pm UTC](https://forum.obsidian.md/t/embed-tags/14872/16 "2021-03-24T14:17:44Z")

</div>

Deactivate “Apply custom css” - this is the old way of using custom styles. You can still use that, but it conflicts with the css snippets - so: _either_ custom css _or_ snippets!

---

<div class="post-metadata">

**Author:** ![Hobo\_9000](https://forum.obsidian.md/user_avatar/forum.obsidian.md/hobo_9000/32/8189_2.png) [@Hobo\_9000](https://forum.obsidian.md/u/Hobo_9000)\
**Post date:** [March 24, 2021, 2:20pm UTC](https://forum.obsidian.md/t/embed-tags/14872/17 "2021-03-24T14:20:08Z")

</div>

nope that’s not doing anything.  
re opened the app as well.  
.  
i have a but load of extra plug ins, should i deactivate all of em.

---

<div class="post-metadata">

**Author:** ![alltagsverstand](https://forum.obsidian.md/user_avatar/forum.obsidian.md/alltagsverstand/32/4265_2.png) [@alltagsverstand](https://forum.obsidian.md/u/alltagsverstand)\
**Post date:** [March 24, 2021, 2:22pm UTC](https://forum.obsidian.md/t/embed-tags/14872/18 "2021-03-24T14:22:56Z")

</div>

Try deactivating all your plugins - if that changes anything, we can be sure that the snippet conflicts with one of them. If that doesn’t change anything, try deactivating your custom theme and check the result. I don’t think the cybertron theme causes that, but just to be sure…

Tell me if it works!

---

<div class="post-metadata">

**Author:** ![alltagsverstand](https://forum.obsidian.md/user_avatar/forum.obsidian.md/alltagsverstand/32/4265_2.png) [@alltagsverstand](https://forum.obsidian.md/u/alltagsverstand)\
**Post date:** [March 24, 2021, 2:24pm UTC](https://forum.obsidian.md/t/embed-tags/14872/19 "2021-03-24T14:24:31Z")

</div>

Just to be sure: in order to hide the “qualifier” tag from your screenshot, the code in the snippet should look like this:

```
a.tag[href="#qualifier"] {
    display: none;
}
```

---

<div class="post-metadata">

**Author:** ![Hobo\_9000](https://forum.obsidian.md/user_avatar/forum.obsidian.md/hobo_9000/32/8189_2.png) [@Hobo\_9000](https://forum.obsidian.md/u/Hobo_9000)\
**Post date:** [March 24, 2021, 2:32pm UTC](https://forum.obsidian.md/t/embed-tags/14872/20 "2021-03-24T14:32:05Z")

</div>

yup that’s right.

---

<div class="post-metadata">

**Author:** ![Hobo\_9000](https://forum.obsidian.md/user_avatar/forum.obsidian.md/hobo_9000/32/8189_2.png) [@Hobo\_9000](https://forum.obsidian.md/u/Hobo_9000)\
**Post date:** [March 24, 2021, 2:37pm UTC](https://forum.obsidian.md/t/embed-tags/14872/21 "2021-03-24T14:37:09Z")

</div>

nope.

 ![image](https://forum.obsidian.md/uploads/default/original/2X/d/d68360917fe360483e3a7a13c70d34aeb85e780b.png)

[Next page](https://forum.obsidian.md/t/embed-tags/14872.md?page=2)
