# Theme not installing form.html.php file

**URL:** <https://forum.mautic.org/t/theme-not-installing-form-html-php-file/24128>\
**Category:** Design\
**Created:** [May 17, 2022, 3:21pm UTC](https://forum.mautic.org/t/theme-not-installing-form-html-php-file/24128 "2022-05-17T15:21:19Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![techbill](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/techbill/32/8325_2.png) [@techbill](https://forum.mautic.org/u/techbill)\
**Post date:** [May 17, 2022, 3:21pm UTC](https://forum.mautic.org/t/theme-not-installing-form-html-php-file/24128/1 "2022-05-17T15:21:19Z")

</div>

I developed a custom form with columns. One of the modification I had to was in within the form.html.php file in Builder folder.

When I uploaded the Theme file, the form.html.php does not get included into the Mautic theme folder. I had to manually upload it to server to my custom theme folder each time.

How do I get it included into Mautic theme?

I did rename form.html.php to form.html.twig and it did get extracted into Mautic theme but it didn’t apply it to the form. I had to rename it back to form.html.php for the change to be applied to the form.

I am sure it have to be in twig format and I am not really familiar with twig so how do I tell it to include the form.html.php file with my theme when uploading via Mautic Theme configuration.

Thank you

---

<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:** [May 17, 2022, 4:23pm UTC](https://forum.mautic.org/t/theme-not-installing-form-html-php-file/24128/2 "2022-05-17T16:23:36Z")

</div>

Did you upload the whole package? (zip)

---

<div class="post-metadata">

**Author:** ![techbill](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/techbill/32/8325_2.png) [@techbill](https://forum.mautic.org/u/techbill)\
**Post date:** [May 17, 2022, 7:50pm UTC](https://forum.mautic.org/t/theme-not-installing-form-html-php-file/24128/3 "2022-05-17T19:50:55Z")

</div>

Yes

The whole package compressed was uploaded but the file form.html.php for some reason does not get generated in theme folder.

Look like it will only accept files ending with .twig extension?

Here the link to the zip file if you want to test it. It a form template but you have to be using Zurb Foundation 6 framework on your website to use this form template then you can style your form in columns - [https://warehouse.agwm.org/repository/zip/zurbfsixform.zip](https://warehouse.agwm.org/repository/zip/zurbfsixform.zip)

If you want to see what the form template is like … Here the test form link - [Testing forms page](https://www.agwm.org/test-form/)

---

<div class="post-metadata">

**Author:** ![techbill](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/techbill/32/8325_2.png) [@techbill](https://forum.mautic.org/u/techbill)\
**Post date:** [May 17, 2022, 8:04pm UTC](https://forum.mautic.org/t/theme-not-installing-form-html-php-file/24128/4 "2022-05-17T20:04:27Z")

</div>

I also developed a form template to style using Bootstrap framework and facing the same issue as above.

---

<div class="post-metadata">

**Author:** ![techbill](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/techbill/32/8325_2.png) [@techbill](https://forum.mautic.org/u/techbill)\
**Post date:** [May 17, 2022, 8:16pm UTC](https://forum.mautic.org/t/theme-not-installing-form-html-php-file/24128/5 "2022-05-17T20:16:41Z")

</div>

And lastly, I wish there were an input attributes for the “form group input box” which is (label, input, error). The one with class=“mauticform-page-wrapper mauticform-page-\*” then I wouldn’t need to make those template for other framwork since I could just put in class for grid or class for row depending on the framework the form is loaded in.

---

<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:** [May 18, 2022, 4:12am UTC](https://forum.mautic.org/t/theme-not-installing-form-html-php-file/24128/6 "2022-05-18T04:12:28Z")

</div>

Oh yes, it has to be twig extension 🙂

---

<div class="post-metadata">

**Author:** ![techbill](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/techbill/32/8325_2.png) [@techbill](https://forum.mautic.org/u/techbill)\
**Post date:** [May 18, 2022, 5:16am UTC](https://forum.mautic.org/t/theme-not-installing-form-html-php-file/24128/7 "2022-05-18T05:16:06Z")

</div>

That the thing.

The theme doesn’t seem to get applied unless it’s end with php extension then the style is applied to the theme.

I will try again and rename the extension to twig.

---

<div class="post-metadata">

**Author:** ![techbill](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/techbill/32/8325_2.png) [@techbill](https://forum.mautic.org/u/techbill)\
**Post date:** [May 18, 2022, 3:56pm UTC](https://forum.mautic.org/t/theme-not-installing-form-html-php-file/24128/8 "2022-05-18T15:56:58Z")

</div>

What the proper way or extension?

I tried

form.html.twig - does not style  
form.html.php.twig - does not style

Only form.html.php works for me but it does not get deployed into the theme folder when uploaded.

---

<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:** [May 18, 2022, 4:30pm UTC](https://forum.mautic.org/t/theme-not-installing-form-html-php-file/24128/9 "2022-05-18T16:30:41Z")

</div>

form.html.twig should work, I PMd you a proper template
