# Editing your website templates

We provide a template editor, where you can view and edit the various files that determine the appearance and layout of your space [website](https://legacydocs.nexudus.com/platform/settings/website) and upload new templates.

{% hint style="info" %}
You can edit the raw HTML, CSS and JavaScript template files of every page in your site, but please use it carefully. We recommend contacting Nexudus support when you want to customise the default website source files.
{% endhint %}

### To access the template editor

1. If the side menu is not visible, click <img src="https://3743897482-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lbh_u87wC7EAH8sHaxc%2F-Li8CzI_wW9MFOVR8udd%2F-Li8D5GrhOIcbhMDzQw8%2Fhamburguer.svg?alt=media&#x26;token=26002cf1-c214-48d7-87a2-3c4f5cd394f4" alt="" data-size="line"> .
2. In the side menu, click [**Settings**](https://platform.nexudus.com/settings).
3. In the **Features** section, click **Website**.
4. From the list of tabs, click **Templates**.
5. Click **Open template files**.
6. If you manage more than one space, select the appropriate space from the first drop-down list.
7. If you created template versions for your space, select the appropriate template version from the second drop-down list:

![](https://3743897482-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lbh_u87wC7EAH8sHaxc%2F-LhGY5hpSlp6C6VqxiOq%2F-LhGYn-fCuXWiV-HZiFi%2Ftemplates_new.png?alt=media\&token=4f63ca75-294b-49a6-8edd-58e2a7f4ed5b)

| Number | Description                                                                                                                                                                |
| ------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 1      | Select a template version from the list you created. **Production** is the default template directory.                                                                     |
| 2      | Allows you to create a new version of the template. Learn about template versioning [here](https://legacydocs.nexudus.com/platform/settings/website/adding-a-custom-page). |

The editor groups the template files in the following folders:

| Folder           | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **Common files** | This folder stores the default files for all website sections. Although you can edit the default files, we recommend that only qualified personnel customise the default website source files. You cannot add any files to this folder, nor can you delete any of the files. Read more about working with common files [here](https://legacydocs.nexudus.com/platform/settings/website/editing-your-website-templates/editing-common-files).                                                                                                                                                                                                                                                                                                                                                                                               |
| **Custom pages** | You can create custom pages in the template editor, which include static content on the website. When these pages are posted, they appear in your website's navigation bar. When you upload a new custom page, you can choose the language that it appears in on the space website. Learn about adding a custom page [here](https://legacydocs.nexudus.com/platform/settings/website/adding-a-custom-page).                                                                                                                                                                                                                                                                                                                                                                                                                                |
| **Custom files** | <p>You can add, edit and delete the files in this folder. These files are divided into the following types:</p><ul><li><strong>Audio files</strong>. This folder stores new audio files which you can link to from the template editor.</li><li><strong>Image files</strong>. This folder stores all image files on the website, which can be used in blog posts, events, and so on.</li><li><strong>Image gallery</strong>. This folder stores images that are displayed in the slideshow on the site's home page.</li><li><strong>Video files</strong>. This folder stores new video files which you can link to from the template editor.</li><li><strong>Other files</strong>. If you want to use any auxiliary files, such as .js or .css files, add them to this folder and link to them in the appropriate template file.</li></ul> |

### To upload a file

![Uploading files](https://3743897482-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lbh_u87wC7EAH8sHaxc%2F-LiTALzV6XXaE4ZdCdPT%2F-LiTAQBY3rspL0qZ9rpa%2Fsettings_custom_upload.png?alt=media\&token=9d438da2-aad3-4e31-aaa9-e46ab25c538b)

1. If the side menu is not visible, click <img src="https://3743897482-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lbh_u87wC7EAH8sHaxc%2F-Li8CzI_wW9MFOVR8udd%2F-Li8D5GrhOIcbhMDzQw8%2Fhamburguer.svg?alt=media&#x26;token=26002cf1-c214-48d7-87a2-3c4f5cd394f4" alt="" data-size="line"> .
2. In the side menu, click [**Settings**](https://platform.nexudus.com/settings).
3. In the **Features** section, click [**Website**](https://platform.nexudus.com/settings/website).
4. From the list of tabs, click **Templates**.
5. Click **Open template files**.
6. Click **Custom files**.
7. Do one of the following:
   * To upload an audio file, click **Audio files>Add new audio file**.
   * To upload an image, click **Image files/Image gallery>Add new image**.
   * To upload a video file, click **Video files>Add new video file**.
   * To upload other files, click **Other files>Add new file**.
8. Click **Upload file**![](broken-reference)and select a file from your computer.
9. Click **Open**.
10. In the **Name** textbox, type a name for the file. It will appear in the URL address that is used to link to the files.
11. In the **Description** textbox, type a short summary of the file.
12. **Optional**: If you manage more than one space, select the appropriate space from the **Location** drop-down list.
13. Click **Save**.

{% hint style="info" %}
The **URL** section displays an address you can use to link the file.
{% endhint %}

{% hint style="info" %}
When adding image or gallery files, set **Use in gallery** to **YES** if want to add the file to the slideshow on your home page.
{% endhint %}

### To delete a file

1. If the side menu is not visible, click <img src="https://3743897482-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lbh_u87wC7EAH8sHaxc%2F-Li8CzI_wW9MFOVR8udd%2F-Li8D5GrhOIcbhMDzQw8%2Fhamburguer.svg?alt=media&#x26;token=26002cf1-c214-48d7-87a2-3c4f5cd394f4" alt="" data-size="line"> .
2. In the side menu, click [**Settings**](https://platform.nexudus.com/settings).
3. In the **Features** section, click [**Website**](https://platform.nexudus.com/settings/website).
4. From the list of tabs, click **Templates**.
5. Click **Open template files**.
6. Click **Custom files**.
7. Click one of the following folders:
   * **Audio files**
   * **Image files**
   * **Image gallery**
   * **Video files**
   * **Other files**
8. Hover your mouse pointer over the file that you want to delete.
9. Click![](broken-reference).
10. Click **Yes** to confirm.
