# How to install a custom template

The default global templates are located in the following directory:&#x20;

```
/wp-content/plugins/content-egg/templates/
```

{% hint style="warning" %}
**Important:** Never edit plugin files directly to customize a template. Any changes made to the plugin files will be lost when the plugin is updated.
{% endhint %}

### Steps to Install a Custom Template

1. **Create Your Template File:**
   * Create a text file for your template.
   * The template file name must start with the '`block_`' prefix, for example, `block_my_template.php`.
2. **Prepare for File Upload:**
   * Use the file manager in your hosting dashboard or any WordPress file manager plugin.
   * Create a special directory for custom templates:

     ```
     /wp-content/content-egg-templates/
     ```

<figure><img src="/files/f8OyRqQnmWh3yAOu73Sg" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/FsAkHJHembhspkgrpDbe" alt=""><figcaption></figcaption></figure>

3. **Upload Your Custom Template:**

* Copy your custom template file to the directory created in the previous step:

  ```
  /wp-content/content-egg-templates/
  ```

4. **Alternative Paths:**

* You can also place your custom template in one of the following directories:

  ```
  /wp-content/themes/your-theme/content-egg-templates/
  /wp-content/themes/your-child-theme/content-egg-templates/
  ```

5. **Apply the Custom Template:**

* Your custom template will appear in the template list with the prefix "`[custom]"`.
* You can now apply the custom template to Content Egg global shortcodes.

<figure><img src="/files/iExPGaVuU1ncleTN4hpr" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ce-docs.keywordrush.com/custom-templates/how-to-install-a-custom-template.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
