# Custom template only works for emails

**URL:** <https://forum.mautic.org/t/custom-template-only-works-for-emails/22269>\
**Category:** Product Support\
**Created:** [January 7, 2022, 6:18pm UTC](https://forum.mautic.org/t/custom-template-only-works-for-emails/22269 "2022-01-07T18:18:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![peter\_k](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/peter_k/32/511_2.png) [@peter\_k](https://forum.mautic.org/u/peter_k)\
**Post date:** [January 7, 2022, 6:18pm UTC](https://forum.mautic.org/t/custom-template-only-works-for-emails/22269/1 "2022-01-07T18:18:26Z")

</div>

Hi,

I tried to create my own theme. It works for emails, but it isn’t available for landing pages and forms, although I “enabled” `page`, `form`, and `email`.

The config.json looks like this:

```auto
{
  "name": "Test",
  "author": "Test",
  "authorUrl": "https://Test.com",
  "builder": ["grapesjsbuilder"],
  "features": [
    "page",
    "email",
    "form"
  ]
}

```

My theme strucute looks like this:

```auto
.
├── assets
├── config.json
├── html
│ ├── base.html.twig
│ ├── email.html.twig
│ ├── form.html.twig
│ ├── message.html.twig
│ └── page.html.twig
└── thumbnail.png

2 directories, 7 files

```

I uploaded it, it installed without problems. But as I said: My theme is only available for emails.

What did I do wrong?

(Side question: What happens to existing emails if I upload a new version of the theme? Do they get changed/updated?)

**Your software**  
My Mautic version is: 4.1.1  
My PHP version is: 7.4

---

<div class="post-metadata">

**Author:** ![peter\_k](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/peter_k/32/511_2.png) [@peter\_k](https://forum.mautic.org/u/peter_k)\
**Post date:** [January 15, 2022, 6:11pm UTC](https://forum.mautic.org/t/custom-template-only-works-for-emails/22269/2 "2022-01-15T18:11:43Z")

</div>

> [@peter\_k](#):
>
> What did I do wrong?

No one? I still didn’t figure it out…

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [January 15, 2022, 8:55pm UTC](https://forum.mautic.org/t/custom-template-only-works-for-emails/22269/3 "2022-01-15T20:55:58Z")

</div>

Answer to your sidequestion:  
The template is only to START an email. Once you created an email, that lives on its own.  
The only time when a template also matters is when you API in an email. In that case you have to name the template your emails is based on.

For your main question: would need to see the template to be able to answer.

---

<div class="post-metadata">

**Author:** ![peter\_k](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/peter_k/32/511_2.png) [@peter\_k](https://forum.mautic.org/u/peter_k)\
**Post date:** [January 17, 2022, 7:23pm UTC](https://forum.mautic.org/t/custom-template-only-works-for-emails/22269/4 "2022-01-17T19:23:08Z")

</div>

Thanks for your answer.

I finally found the problem. I  
`builder` is just set to grapesjs, it’ll work only for emails. You need to enable legacy to make it work for page and form, too. . .
