Title: Where to put code&#8230;.functions.php or wp_admin editor for theme
Last modified: August 24, 2016

---

# Where to put code….functions.php or wp_admin editor for theme

 *  [Rick](https://wordpress.org/support/users/rickworkzonecom/)
 * (@rickworkzonecom)
 * [11 years ago](https://wordpress.org/support/topic/where-to-put-codefunctionsphp-or-wp_admin-editor-for-theme/)
 * Over the years, we have added a lot of custom code to functions.php to modify
   our theme. I’ve never loved having to tinker with functions.php, because a single
   typo can bring down the whole site (and modifying via FTP is a bit of a hassle).
 * We run the Genesis theme, which recently added a nice admin screen to add code
   to wp_head(); there is also a plug-in that gives access to other wp hooks via
   admin panel. It seems much easier to view/maintain via the admin screens (vs.
   FTP) and I also wonder whether it’s somehow less risky that mucking around in
   functions.php.
 * Is there a best practice on whether this type of code should be put in the functions.
   php file or is it fine to maintain on the theme admin pages in wp_admin? When
   do we choose one location vs the other?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Martin Robbins](https://wordpress.org/support/users/santeven/)
 * (@santeven)
 * [11 years ago](https://wordpress.org/support/topic/where-to-put-codefunctionsphp-or-wp_admin-editor-for-theme/#post-6172718)
 * If you have theme options panels in wp-admin, best to go with that. If you want
   to edit functions.php yourself, best to create a child theme and edit the child
   functions.php and not the parent.
 *  Thread Starter [Rick](https://wordpress.org/support/users/rickworkzonecom/)
 * (@rickworkzonecom)
 * [11 years ago](https://wordpress.org/support/topic/where-to-put-codefunctionsphp-or-wp_admin-editor-for-theme/#post-6172721)
 * Thanks santeven. Can I move everything from child theme’s function.php to wp-
   admin or should certain things remain in functions.php?
 *  [Martin Robbins](https://wordpress.org/support/users/santeven/)
 * (@santeven)
 * [11 years ago](https://wordpress.org/support/topic/where-to-put-codefunctionsphp-or-wp_admin-editor-for-theme/#post-6172748)
 * It seems perhaps either you have not understood my answers or I have not understood
   your questions. At this point I would suggest consult the Genesis theme authors
   and/or their documentation. Good Luck

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Where to put code….functions.php or wp_admin editor for theme’ is closed
to new replies.

## Tags

 * [wp_head](https://wordpress.org/support/topic-tag/wp_head/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 3 replies
 * 2 participants
 * Last reply from: [Martin Robbins](https://wordpress.org/support/users/santeven/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/where-to-put-codefunctionsphp-or-wp_admin-editor-for-theme/#post-6172748)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
