# How to edit \<head\>

**URL:** <https://meta.discourse.org/t/how-to-edit-head/312938>\
**Category:** Development\
**Created:** [June 20, 2024, 7:45pm UTC](https://meta.discourse.org/t/how-to-edit-head/312938 "2024-06-20T19:45:15Z")\
**Posts on this page:** 3\
**Page:** 1

## AI-generated summary

In the discussion titled "How to edit <head>" within the Development category, [sok777](/t/-/312938/1) inquired about easily editing the `<head>` section when using git themes. [Moin](/t/-/312938/2) responded by suggesting the addition of a custom component to the theme, providing a link to a related topic on triggering events as an example. [sok777](/t/-/312938/3) acknowledged this as an interesting and cool workaround.

<div class="post-metadata">

**Author:** ![sok777](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@sok777](https://meta.discourse.org/u/sok777)\
**Post date:** [June 20, 2024, 7:45pm UTC](https://meta.discourse.org/t/how-to-edit-head/312938/1 "2024-06-20T19:45:15Z")

</div>

is there a way to edit the easily when using git themes?

---

<div class="post-metadata">

**Author:** ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)\
**Post date:** [June 20, 2024, 7:57pm UTC](https://meta.discourse.org/t/how-to-edit-head/312938/2 "2024-06-20T19:57:05Z")

</div>

You can add a custom component to your theme

> [@Open the login popup Or trigger event when button is pressed](https://meta.discourse.org/t/open-the-login-popup-or-trigger-event-when-button-is-pressed/136385/7):
>
> You can create a new Theme component and attach it to your theme. Go to Admin → Customize Click on Install button Then attach it to your theme and click on Edit CSS/HTML button You add code in Head section: Hope that helps. +1

---

<div class="post-metadata">

**Author:** ![sok777](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@sok777](https://meta.discourse.org/u/sok777)\
**Post date:** [June 20, 2024, 9:01pm UTC](https://meta.discourse.org/t/how-to-edit-head/312938/3 "2024-06-20T21:01:37Z")

</div>

Interesting! That’s a pretty cool workaround.
