# Disable wrapping div on Inputs

**URL:** <https://discourse.cakephp.org/t/disable-wrapping-div-on-inputs/2255>\
**Category:** Need Help\
**Created:** [March 19, 2017, 9:58am UTC](https://discourse.cakephp.org/t/disable-wrapping-div-on-inputs/2255 "2017-03-19T09:58:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![homeboy](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/homeboy/32/567_2.png) [@homeboy](https://discourse.cakephp.org/u/homeboy)\
**Post date:** [March 19, 2017, 9:58am UTC](https://discourse.cakephp.org/t/disable-wrapping-div-on-inputs/2255/1 "2017-03-19T09:58:13Z")

</div>

Hi,

I have some Problems with the form helper. Is there a way to **disable the wrapping div on input fields** or is it possible to change the class from “input text” to a custom one? Is it also possible to turn it off globally? It conflicts with the classes from semantic-ui!

Now it looks like:

```
<div class="input text">
    <input type="text" name="query" placeholder="Search" id="query">
</div>

```

But it should look like (Without the wrapping DIV):

```
<input type="text" name="query" placeholder="Search" id="query">

```

Thank you for your help!

---

<div class="post-metadata">

**Author:** ![homeboy](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/homeboy/32/567_2.png) [@homeboy](https://discourse.cakephp.org/u/homeboy)\
**Post date:** [March 19, 2017, 11:04am UTC](https://discourse.cakephp.org/t/disable-wrapping-div-on-inputs/2255/2 "2017-03-19T11:04:29Z")

</div>

Fixed it like described in the documentation on [https://book.cakephp.org/3.0/en/views/helpers/form.html#customizing-the-templates-formhelper-uses](https://book.cakephp.org/3.0/en/views/helpers/form.html#customizing-the-templates-formhelper-uses)

But isn’t there an easier way to do this like applying a “div” =\> false on the form element?

---

<div class="post-metadata">

**Author:** ![rrd](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/rrd/32/113_2.png) [@rrd](https://discourse.cakephp.org/u/rrd)\
**Post date:** [March 20, 2017, 9:19am UTC](https://discourse.cakephp.org/t/disable-wrapping-div-on-inputs/2255/3 "2017-03-20T09:19:28Z")

</div>

The Cake3 way is to define the `inputcontainer`, no shorter way.
