# Modifying head\_tag.html template

**URL:** <https://meta.discourse.org/t/modifying-head-tag-html-template/116012>\
**Category:** Development\
**Created:** [April 25, 2019, 9:06pm UTC](https://meta.discourse.org/t/modifying-head-tag-html-template/116012 "2019-04-25T21:06:53Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Johani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johani/32/176920_2.png) [@Johani](https://meta.discourse.org/u/Johani)\
**Post date:** [April 26, 2019, 12:48am UTC](https://meta.discourse.org/t/modifying-head-tag-html-template/116012/2 "2019-04-26T00:48:07Z")

</div>

While you can add to it - like you’ve already discovered - you can’t modify the existing contents of the `<head>` tag in a theme because it’s generated based on `.erb` files and themes don’t have access to that.

[discourse/app/views/layouts/application.html.erb at eae22548de4eedad875555e7353b8abfdce2452b · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/eae22548de4eedad875555e7353b8abfdce2452b/app/views/layouts/application.html.erb#L3-L64)

with a another file that’s loaded as a partial here

[discourse/app/views/layouts/\_head.html.erb at eae22548de4eedad875555e7353b8abfdce2452b · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/eae22548de4eedad875555e7353b8abfdce2452b/app/views/layouts/_head.html.erb)

It’s possible that there maybe JavaScript workarounds to achieve what you’re trying to do. I might be able to advise if you can give me a simple example of the desired changes.

---

_[View the full topic](https://meta.discourse.org/t/modifying-head-tag-html-template/116012)._
