• Rick

    (@rickworkzonecom)


    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)
  • 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

    (@rickworkzonecom)

    Thanks santeven. Can I move everything from child theme’s function.php to wp-admin or should certain things remain in functions.php?

    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.