# Add code to \<head\> and \</head\>

**URL:** https://meta.discourse.org/t/add-code-to-head-and-head/177316
**Category:** Support
**Created:** [January 26, 2021, 2:11pm UTC](https://meta.discourse.org/t/add-code-to-head-and-head/177316 "2021-01-26T14:11:14Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Timelord](https://avatars.discourse-cdn.com/v4/letter/t/ba9def/32.png) [@Timelord](https://meta.discourse.org/u/Timelord)
#### Post date: [January 26, 2021, 2:11pm UTC](https://meta.discourse.org/t/add-code-to-head-and-head/177316/1 "2021-01-26T14:11:15Z")

</div>

Hey gang, I am using the Vincent theme on one of my sites, and from what I can tell, there is no easy way to add adsense verification code (this is different from the actual ads). It needs to be added between `<head>` and `</head>`.  
Using the default theme I can add it, and google can verify, but once I switch back to the Vincent theme, the entries have been removed.

Long story short, how do I add the code between `<head>` and `</head>`

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [January 26, 2021, 6:14pm UTC](https://meta.discourse.org/t/add-code-to-head-and-head/177316/2 "2021-01-26T18:14:47Z")

</div>

> [@Timelord](#):
>
> Using the default theme I can add it, and google can verify, but once I switch back to the Vincent theme, the entries have been removed.

> [@Timelord](#):
>
> how do I add the code

Create a theme component that adds the code to its `head` tag, then add that theme component to the Vincent theme:

 ![image](https://global.discourse-cdn.com/meta/original/3X/f/0/f0e7a670cdc38aa419e917ab96a84dd3bd348b18.png)

---

<div class="post-metadata">

### Author: ![Timelord](https://avatars.discourse-cdn.com/v4/letter/t/ba9def/32.png) [@Timelord](https://meta.discourse.org/u/Timelord)
#### Post date: [January 26, 2021, 7:11pm UTC](https://meta.discourse.org/t/add-code-to-head-and-head/177316/3 "2021-01-26T19:11:35Z")

</div>

Thank you for this. It is much appreciated.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [September 3, 2022, 8:05am UTC](https://meta.discourse.org/t/add-code-to-head-and-head/177316/5 "2022-09-03T08:05:30Z")

</div>


