# Unable to locate Custom Code function in latest Discourse version

**URL:** https://meta.discourse.org/t/unable-to-locate-custom-code-function-in-latest-discourse-version/378935
**Category:** Support
**Created:** [August 17, 2025, 4:29pm UTC](https://meta.discourse.org/t/unable-to-locate-custom-code-function-in-latest-discourse-version/378935 "2025-08-17T16:29:03Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![antontruda](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/antontruda/32/469284_2.png) [@antontruda](https://meta.discourse.org/u/antontruda)
#### Post date: [August 17, 2025, 4:29pm UTC](https://meta.discourse.org/t/unable-to-locate-custom-code-function-in-latest-discourse-version/378935/1 "2025-08-17T16:29:03Z")

</div>

I can’t find the **[Custom Code](https://meta.discourse.org/t/custom-code/108059)** function in the theme settings in the latest version. Please tell me how I can now add custom code to the **`<head>`** section.

Previously, this used to look like this:

 ![image](https://global.discourse-cdn.com/meta/original/4X/1/2/b/12b224de050a564e9ae91dce0cc946660af3ba27.png)

Please tell me how I can now add custom code to the **`<head>`** section.

---

<div class="post-metadata">

### Author: ![mcwumbly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcwumbly/32/103861_2.png) [@mcwumbly](https://meta.discourse.org/u/mcwumbly)
#### Post date: [August 17, 2025, 5:37pm UTC](https://meta.discourse.org/t/unable-to-locate-custom-code-function-in-latest-discourse-version/378935/2 "2025-08-17T17:37:12Z")

</div>

We don’t allow this kind of direct editing for remote themes or the new built in [core themes](https://meta.discourse.org/t/introducing-core-themes/374241).

Customization of remote or core themes can be done with theme components though. You can go to components, add one, and then edit that directly.

Alternatively, if you want to have a theme that you can edit directly, you can “Create New” and start with a blank theme.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [September 16, 2025, 5:37pm UTC](https://meta.discourse.org/t/unable-to-locate-custom-code-function-in-latest-discourse-version/378935/3 "2025-09-16T17:37:39Z")

</div>

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