# Editor Themes relative path

**URL:** https://discourse.nodered.org/t/editor-themes-relative-path/66232
**Category:** General
**Tags:** editor
**Created:** [9 August 2022 14:13 UTC](https://discourse.nodered.org/t/editor-themes-relative-path/66232 "2022-08-09T14:13:06Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![alevher](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/alevher/32/65952_2.png) [@alevher](https://discourse.nodered.org/u/alevher)
#### Post date: [9 August 2022 14:13 UTC](https://discourse.nodered.org/t/editor-themes-relative-path/66232/1 "2022-08-09T14:13:06Z")

</div>

Hello Everyone, i am creating a customized UI for my istance of node red and looking up at the Editor themes documentation portion :

```auto
page: {
        title: "Node-RED",
        favicon: "/absolute/path/to/theme/icon",
        css: "/absolute/path/to/custom/css/file",
        scripts: ["/absolute/path/to/custom/script/file", "/another/script/file"]
    },
    header: {
        title: "Node-RED",
        image: "/absolute/path/to/header/image", // or null to remove image
        url: "http://nodered.org" // optional url to make the header text/image a link to this url
    },
    deployButton: {
        type:"simple",
        label:"Save",
        icon: "/absolute/path/to/deploy/button/image" // or null to remove image
    },

```

in order to pass the favicon or the images it requires the absolute file path, is it possible to have it relative, if yes, how? i tried \_\_dirname but i couldn't do it. i tried with examples like .\..\ style and something like that but it failed. I am on Windows.

Thank you for the help, have a nice day

---

<div class="post-metadata">

### Author: ![alevher](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/alevher/32/65952_2.png) [@alevher](https://discourse.nodered.org/u/alevher)
#### Post date: [10 August 2022 07:29 UTC](https://discourse.nodered.org/t/editor-themes-relative-path/66232/2 "2022-08-10T07:29:56Z")

</div>

Probably i explained myhself pretty poorly, i'd like not to use the absolute path in order to reference the css, is there a way? If yes, where should i put the folder that comntains the icons,images, and the css file?

---

<div class="post-metadata">

### Author: ![hugo-maciel](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hugo-maciel/32/68650_2.png) [@hugo-maciel](https://discourse.nodered.org/u/hugo-maciel)
#### Post date: [5 October 2022 15:01 UTC](https://discourse.nodered.org/t/editor-themes-relative-path/66232/3 "2022-10-05T15:01:36Z")

</div>

Hello @alevher !

Did you sort it out? I'm facing the same issue. I tried the absolute path like :`favicon: "C:\Users\jowagen\Downloads\favicon.ico"` and didn't work.

---

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [5 October 2022 15:18 UTC](https://discourse.nodered.org/t/editor-themes-relative-path/66232/4 "2022-10-05T15:18:30Z")

</div>

@hugo-maciel

try with `"C:/Users/jowagen/Downloads/favicon.ico"`

---

<div class="post-metadata">

### Author: ![alevher](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/alevher/32/65952_2.png) [@alevher](https://discourse.nodered.org/u/alevher)
#### Post date: [6 October 2022 08:21 UTC](https://discourse.nodered.org/t/editor-themes-relative-path/66232/5 "2022-10-06T08:21:27Z")

</div>

Hello !

I used this `favicon: __dirname + "\\style\\icons\\favicon.ico"`

dirname is the directory where the settings js file is, i have in the .nodered folder a subdirecotry style with everytihng in it

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [5 December 2022 08:21 UTC](https://discourse.nodered.org/t/editor-themes-relative-path/66232/6 "2022-12-05T08:21:52Z")

</div>

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