# How do you know where to place code? \[RESOLVED\]

**URL:** <https://community.gravityforms.com/t/how-do-you-know-where-to-place-code-resolved/13001>\
**Category:** Get Help\
**Tags:** php, where-do-i-place-this-code\
**Created:** [July 9, 2022, 10:03am UTC](https://community.gravityforms.com/t/how-do-you-know-where-to-place-code-resolved/13001 "2022-07-09T10:03:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![user5d946cb97251d498](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/user5d946cb97251d498/32/1056_2.png) [@user5d946cb97251d498](https://community.gravityforms.com/u/user5d946cb97251d498)\
**Post date:** [July 9, 2022, 10:03am UTC](https://community.gravityforms.com/t/how-do-you-know-where-to-place-code-resolved/13001/1 "2022-07-09T10:03:30Z")

</div>

Good morning, hoping for some guide please. There seems to be 3 places where code could be put:  
1). Snippets plug-in, functions.php, the codes that are accepted seem to start: add\_filter.  
2). Form settings, Customer Javascript, the codes that are accepted seem to start: gform.addFilter.  
3). Built-in CSS editor, additional CSS, the codes that are accepted seem to start: gform\_wrapper .instruction {.

Not being skilled in trying to improve function and to suit our needs, it’s been trial and error. For example snippets doesn’t seem to like any code including a form id=“1”, or whatever the number is. Would like to know where to put code, rather than guesswork.

Thanks.

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [July 9, 2022, 3:45pm UTC](https://community.gravityforms.com/t/how-do-you-know-where-to-place-code-resolved/13001/2 "2022-07-09T15:45:10Z")

</div>

Hi Steve. I think you have it right basically. Hopefully this article will answer your questions:

> **[Where Do I Put This Code?](https://docs.gravityforms.com/where-do-i-put-this-code/)**
>
> In this article, we will show you where you should typically place code that is within our documentation.

If not, please let us know.

---

<div class="post-metadata">

**Author:** ![user5d946cb97251d498](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/user5d946cb97251d498/32/1056_2.png) [@user5d946cb97251d498](https://community.gravityforms.com/u/user5d946cb97251d498)\
**Post date:** [July 11, 2022, 9:25am UTC](https://community.gravityforms.com/t/how-do-you-know-where-to-place-code-resolved/13001/3 "2022-07-11T09:25:32Z")

</div>

Thank you Chris

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/gravityforms1/original/2X/f/fef63f0599c45e0218c30d9f5d7ca8bff9b00189.png) [@system](https://community.gravityforms.com/u/system)\
**Post date:** [July 12, 2022, 9:26am UTC](https://community.gravityforms.com/t/how-do-you-know-where-to-place-code-resolved/13001/4 "2022-07-12T09:26:02Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
